plot_single_locus: Plot a single locus against the rest of the genome

View source: R/plot_single_locus.R

plot_single_locusR Documentation

Plot a single locus against the rest of the genome

Description

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.

Usage

plot_single_locus(data, locus)

Arguments

data

A data frame containing locus-specific data (see ?read_loci)

locus

Index of the locus to plot

Details

The color of the background ribbon corresponds to the trait encoded by the locus.

Value

A ggplot

See Also

read_loci

Examples


## 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)


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