chooseRefugeCells | R Documentation |
Interactive function allowing a user to identify specific cells on the landscape, which can be used as starting locations for a forward-time demographic simulation.
chooseRefugeCells(r)
r |
this is the surface (a single raster layer) |
Interactive function using locator() to identify cell IDs from user input. Assumes refugia include a central cell and adjacent cells in each cardinal direction (5 total).
A vector of five cell IDs associated with the user-specified refuge location
locator
, getpophist2.cells
library(holoSimCell)
rs <- raster::brick(paste0(system.file("extdata","rasters",package="holoSimCell"),"/","study_region_daltonIceMask_lakesMasked_linearIceSheetInterpolation.tif"))
chooseRefugeCells(rs[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.