View source: R/plot_helper_functions.R
plotWFDrift | R Documentation |
Plot WFDriftSim output
plotWFDrift(p.through.time, plot.type = plot, knitr = FALSE)
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 |
A static or animated plot of populations under genetic drift through time
store_p = WFDriftSim(Ne = 5, n.gen = 10, p0=.2, n.sim=5, plot = "none", print.data = TRUE)
plotWFDrift(store_p, "static")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.