plot_density | R Documentation |
Plots histograms of a genetic variable across loci at a specific time point, facetted by trait and with the variable on the y-axis.
plot_density(data, variable, time, bins = 20)
data |
A data frame with locus-specific data (see |
variable |
Name of the variable to plot (a string) |
time |
Time point at which to show the variable |
bins |
Parameter to be passed to |
A ggplot
read_loci
, ggplot2::geom_histogram
## Not run: root <- system.file("extdata", "sim-example", package = "speciomer") data <- read_loci(root, "locus_Fst") plot_density(data, "Fst", time = -1000) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.