plot_lineages: Plot Lineages on a Map

Description Usage Arguments Value

Description

Plot the path traced out by lineages on the habitat of the corresponding population.

Usage

1
2
plot_lineages(lineages, pop, cols = rainbow(dim(lineages)[1]), plot = TRUE,
  ...)

Arguments

lineages

An array indexed by (lineage,location-or-genotype,time).

pop

A population object.

cols

A vector of colors.

plot

Do the plot? Otherwise, just compute coordinates.

...

Other parameters to pass to arrows().

Value

Invisibly returns an array of lineage locations, with dimensions indexed by (lineage, time, (x,y)) .


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.