View source: R/plot_gene_regression.R
plot_gene_regression | R Documentation |
Plots the regression of genetic values against allele counts (genotypes) for a particular locus, facetted by time point. Genetic values are represented both by boxplots and dots (individuals are binned by genetic value such that
plot_gene_regression(data, locus)
data |
Individual whole genome data with information about individual
ecotypes ( |
locus |
Index of the locus to plot |
A ggplot
read_individual_genomes
root <- system.file("extdata", "sim-indiv-genomes", package = "speciomer") data <- read_individual_genomes(root, individual_variables = "ecotypes") plot_gene_regression(data, locus = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.