View source: R/plot_helper_functions.R
plotNatSel | R Documentation |
Plot NatSelSim output
plotNatSel(
gen.HW = gen.HW,
p.t = p.t,
w.t = w.t,
t = t,
W.gntp = c(w11, w12, w22),
plot.type = "animateall",
knitr = FALSE
)
gen.HW |
Dataframe with A1A1, A1A2 and A2A2 genotypic frequencies in each generation (nrows = NGen) |
p.t |
Allelic frequency through time |
w.t |
Mean population fitness through time |
t |
time |
W.gntp |
Initial genotypic fitness |
plot.type |
String indicating if plot should be animated. The default, "animateall", animate all possible panels. Other options are "static", "animate1", "animate3", or "animate4". |
knitr |
Logical indicating if plot is intended to show up in RMarkdown files made by the |
Plot of NatSelSim's output (see NatSelSim
's help page for
details).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.