plot_barcode | R Documentation |
Plots a barcode showing each locus in the genome and the trait they code for.
plot_barcode(arch, xaxis = "location", size = 0.1)
arch |
A data frame containing locus-wise genetic architecture
data (see |
xaxis |
What to show on the x-axis. Either of "location" for genomic location (continuous between 0 and 1) or "locus" for locus index. |
size |
Size of the segments showing the loci, to be passed to
|
A ggplot
read_architecture
root <- system.file("extdata", "sim-example", package = "speciomer") arch <- read_architecture(root)$nodes arch <- arch %>% dplyr::mutate(trait = recode_traits(trait)) plot_barcode(arch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.