plot_loci_tt: Plot locus-specific variables through time

View source: R/plot_loci_tt.R

plot_loci_ttR Documentation

Plot locus-specific variables through time

Description

Generates a line plot of one variable through time, with one line for each locus, facetted by trait.

Usage

plot_loci_tt(data, variable, burnin_bar = TRUE)

Arguments

data

A data frame with locus-specific data through time (see ?read_loci).

variable

Name of the variable to plot (a string)

burnin_bar

Whether to add a vertical bar at time point zero

Value

A ggplot

See Also

read_loci

Examples


## Not run: 

root <- system.file("extdata", "sim-example", package = "speciomer")
data <- read_loci(root, "locus_Fst")
data <- data %>% dplyr::mutate(trait = recode_traits(trait))
plot_loci_tt(data, "Fst")


## End(Not run)


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