plotCellsOnSuit: plot the location of cells on landscape

View source: R/plotCellsOnSuit.R

plotCellsOnSuitR Documentation

plot the location of cells on landscape

Description

Illustration of location of specific cells on the forward simulation landscape.

Usage

plotCellsOnSuit(cells, landscape, timeslice = 1)

Arguments

cells

a vector of cell ids to plot

landscape

the landscape object that drives the simulation (see ashSetupLandscape for a full description of the landscape object)

timeslice

(default = 1), the layer of the landscape that corresponds to a time step (generation) in the simulation

Details

This function allows the user to visualize the location of specific cells on the simulation landscape. We have found this useful for confirming the location of refugial cells in our simulations.

Value

Returns a plot illustrating the simulated landscape at a particular point in time. The simulation landscape (open, or unglaciated habitat) is shown in orange, glaciated regions are shown in light blue, and cells queried are shown in maroon.

See Also

ashSetupLandscape

Examples

library(holoSimCell)
parms <- drawParms(control = system.file("extdata/ashpaper","Ash_priors.csv",package="holoSimCell"))
load(file=paste0(system.file(package="holoSimCell"),"/extdata/landscapes/",pollenPulls[[1]]$file))
refpops <- pollenPulls[[1]]$refs
plotCellsOnSuit(refpops, landscape, timeslice = 1)


stranda/holoSimCell documentation built on Aug. 4, 2023, 1:12 p.m.