plot.genealogy: Genealogy Plot

Description Usage Arguments Author(s)

Description

Plot method for objects of class 'genealogy'

Usage

1
2
3
4
## S3 method for class 'genealogy'
plot(history, title = NULL, col.line = "darkgrey",
  shade.dead = !highlight.sample, col.alive = "black", col.dead = "grey",
  highlight.sample = FALSE, sampl = 1:N, col.highlight = "purple", ...)

Arguments

history

an object of class 'genealogy' as returned from WFsim or moranSim, where the (i,j)th entry specifies the parent of individual j of generation i+1

title

title for the plot

col.line

the colour used to plot parent-offspring lines

shade.dead

use a different colour to shade individuals with no offspring (dead lineages)?

col.alive

if shade.dead=TRUE, the colour to shade individuals with offspring

col.dead

if shade.dead=TRUE, the colour to shade individuals without offspring

highlight.sample

highlight the ancestry of a sample from the most recent generation?

sampl

if highlight.sample=TRUE, which individuals from the most recent generation to include in the sample

col.highlight

if highlight.sample=TRUE, the colour used to plot the highlighted ancestry

Author(s)

Suzie Brown


suziebrown/miniproject1 documentation built on May 26, 2019, 9:36 a.m.