Description Usage Arguments Value Author(s) Examples
Plot naive estimates of ancestral allele frequency versus actual values from the simulation, to see if they agree.
1 | anc.est.plot(est.df, hilite.locus = NULL, sub = deduce.param.label(attr(est.df, "parameters")), selection.colors = selection.colors.default, selection.symbols = selection.symbols.default, f = ancestral.est ~ ancestral, xlab = "Simulated blue allele frequency", ylab = "Estimated blue allele frequency", main = "Allele frequency estimates vary with selection type")
|
est.df |
Data frame describing loci and ancestral estimates. Need columns type ancestral ancestral.est. |
hilite.locus |
Locus number to highlight on the plot with a circle. NULL means do not highlight. |
sub |
Subtitle for the plot. |
selection.colors |
Colors for the different selection types (balancing, neutral, positive) |
selection.symbols |
Symbols for the different selection types (balancing, neutral, positive) |
f |
Plot formula for xyplot. |
xlab |
|
ylab |
|
main |
The lattice plot.
Toby Dylan Hocking <toby.hocking@etu.upmc.fr>
1 2 3 4 5 | library(nicholsonppp)
sim <- sim.drift.selection()
df <- sim2df(sim)
est <- anc.est.naive(df[df$generation==sim$p$gen,])
anc.est.plot(est)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.