View source: R/plotCellsOnSuit.R
plotCellsOnSuit | R Documentation |
Illustration of location of specific cells on the forward simulation landscape.
plotCellsOnSuit(cells, landscape, timeslice = 1)
cells |
a vector of cell ids to plot |
landscape |
the landscape object that drives the simulation (see |
timeslice |
(default = 1), the layer of the landscape that corresponds to a time step (generation) in the simulation |
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.
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.
ashSetupLandscape
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.