| gc_plot | R Documentation |
Generates a compact, publication-ready arrow plot of gene
clusters previously processed with gc_scale.
Each cluster is displayed on its own horizontal track, with
gene directionality, labels, and user-defined colour schemes.
gc_plot(
data = GC_meta,
color_theme = c("#3BAA51", "#6495ED", "#DD2421", "#EF9320", "#F8EB00", "#FF0683",
"#956548", "grey")
)
data |
A data frame produced by |
color_theme |
Character vector of colours, in the same order as the
factor levels of |
A ggplot object that can be further customised or printed.
The plot uses gggenes::geom_gene_arrow() and
gggenes::geom_gene_label() with the following elements:
One facet per Pgenome (cluster).
Genes coloured by gene_group.
Arrow direction encoded by Pdirection.
Optional gene labels inside arrows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.