anc.est.plot: Ancestral estimate plot

Description Usage Arguments Value Author(s) Examples

Description

Plot naive estimates of ancestral allele frequency versus actual values from the simulation, to see if they agree.

Usage

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")

Arguments

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

Value

The lattice plot.

Author(s)

Toby Dylan Hocking <toby.hocking@etu.upmc.fr>

Examples

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)

nicholsonppp documentation built on May 2, 2019, 5:55 p.m.