fixation.endpoints: Plot allele frequency by selection type

Description Usage Arguments Value Author(s) Examples

Description

Plot gene frequencies for all loci and populations for a given generation, stratified by selection type and coefficient.

Usage

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

Arguments

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.

...

Value

The lattice plot.

Author(s)

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

Examples

1
2
3
4
library(nicholsonppp)
sim <- sim.drift.selection()
df <- sim2df(sim)
fixation.endpoints(df[df$generation==sim$p$gen,])

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