Description Usage Details See Also Examples
This theme removes extraneous plot elements for drawing an 'arrows-on-a-string' style gene map in 'ggplot2'.
1 |
This theme removes strip text (the text that labels facets when you use 'facet_wrap' or 'facet_grid'). This makes it easier to draw molecules on different x scales by setting the y aesthetic to the molecule, then faceting with 'facet_grid( ~ molecule, scales = "free")'.
geom_gene_arrows
1 2 3 4 5 | ggplot2::ggplot(example_genes, ggplot2::aes(xmin = start, xmax = end,
y = molecule, fill = gene)) +
geom_gene_arrow() +
ggplot2::facet_wrap(~ molecule, scales = "free") +
theme_genes()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.