gggenomes
gggenomes copied to clipboard
markdown expressions in geom_gene_text
Got this via email
I’m contacting you because I have been using the package you developed (gggenomes) to built synteny plots, and my question is whether its possible to use markdown expressions in geom_gene_text layer.
I have already use the package ggtext to use italics and subscript for gene notation when using gggenes (from ggplot2) using the following syntax:
ggplot(data = data, aes(xmin = start, xmax = end, y = seqID, fill = phenotype, forward = strand)) + geom_gene_arrow() + geom_richtext(aes(x = end-(end-start)/2, y = seqID, label = subject.id)) + theme(strip.text.x = element_markdown())
I have already tried this in gggenomes but it doesn’t work with geom_gene_text().
Any suggestion?