Description Usage Arguments Value Author(s) Examples
Plot gene frequencies for all loci and populations for a given generation, stratified by selection type and coefficient.
1 | fixation.endpoints(lf, main = "Loci fixation depends on selection type and population color", pop.colors = c(pop.colors.default, "black"), par.settings = list(superpose.symbol = list(col = pop.colors, pch = 20)), hilite.locus = NULL, selection.colors = selection.colors.default, sub = deduce.param.label(attr(lf, "parameters")), ...)
|
lf |
Subset of simulated gene frequency data frame, with just 1 generation. |
main |
Plot title. |
pop.colors |
Population color scheme (blue, neutral, red, ancestral). |
par.settings |
Plot settings as described in trellis.par.get. |
hilite.locus |
Locus to highlight with a vertical line, or NULL to highlight nothing. |
selection.colors |
List with element "col" which contains a vector of colors to label the selection types (balancing, none, positive) |
sub |
Subtitle for the plot. |
... |
The lattice plot.
Toby Dylan Hocking <toby.hocking@etu.upmc.fr>
1 2 3 4 | library(nicholsonppp)
sim <- sim.drift.selection()
df <- sim2df(sim)
fixation.endpoints(df[df$generation==sim$p$gen,])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.