plotWFDrift: Plot WFDriftSim output

View source: R/plot_helper_functions.R

plotWFDriftR Documentation

Plot WFDriftSim output

Description

Plot WFDriftSim output

Usage

plotWFDrift(p.through.time, plot.type = plot, knitr = FALSE)

Arguments

p.through.time

Matrix with n.gen columns and n.sim lines

plot.type

String. Options are "static" or "animate"

knitr

Logical indicating if plot is intended to show up in RMarkdown files made by the Knitr R package.

Value

A static or animated plot of populations under genetic drift through time

Examples

store_p = WFDriftSim(Ne = 5, n.gen = 10, p0=.2, n.sim=5, plot = "none", print.data = TRUE)
plotWFDrift(store_p, "static")

evolved documentation built on April 3, 2025, 9:23 p.m.