View source: R/plot_single_locus_extended.R
plot_single_locus_extended | R Documentation |
Plots several locus-specific variables through time for a specific locus, together with information about the regression of genetic values against genotypes across the population, at various time points.
plot_single_locus_extended(genome_data, indiv_genomes, locus)
genome_data |
Data frame containing locus-specific data (see
|
indiv_genomes |
Data frame containing individual whole genome data
(see |
locus |
Index of the locus to plot |
A patchwork
The regression of genetic values against genotypes requires whole-genome data at the individual-level, which may likely come from a separate simulation. This is because it uses a lot of memory to record individual whole genomes as often as one might record locus-specific variables, which are summaries across the population.
See https://github.com/rscherrer/speciome for more details.
read_loci
, read_individual_genomes
,
plot_single_locus
, plot_gene_regression
root <- system.file("extdata", "sim-example", package = "speciomer") root_indiv_genomes <- system.file( "extdata", "sim-indiv-genomes", package = "speciomer" ) genome_data <- read_loci(root, c("freq", "Fst", "Qst", "Cst", "alpha")) indiv_genomes <- read_individual_genomes( root_indiv_genomes, individual_variables = "ecotypes" ) plot_single_locus_extended(genome_data, indiv_genomes, locus = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.