plot_gene_regression: Plot genetic values against genotypes at a certain locus

View source: R/plot_gene_regression.R

plot_gene_regressionR Documentation

Plot genetic values against genotypes at a certain locus

Description

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

Usage

plot_gene_regression(data, locus)

Arguments

data

Individual whole genome data with information about individual ecotypes (read_individual_genomes with individual_trait = "ecotypes").

locus

Index of the locus to plot

Value

A ggplot

See Also

read_individual_genomes

Examples


root <- system.file("extdata", "sim-indiv-genomes", package = "speciomer")
data <- read_individual_genomes(root, individual_variables = "ecotypes")
plot_gene_regression(data, locus = 1)


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.