View source: R/plot_single_locus.R
plot_single_locus | R Documentation |
Plots the trajectory of one locus through time for some variables, on top of a ribbon showing the 95 percent interval of trajectories across genes coding for the same trait. Shows the allele frequency, Fst, Qst, Cst and average mutational effect.
plot_single_locus(data, locus)
data |
A data frame containing locus-specific data (see
|
locus |
Index of the locus to plot |
The color of the background ribbon corresponds to the trait encoded by the locus.
A ggplot
read_loci
## Not run: root <- system.file("extdata", "sim-example", package = "speciomer") data <- read_loci(root, c("freq", "Fst", "Qst", "Cst", "alpha")) plot_single_locus(data, locus = 1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.