View source: R/coordsFromEpmGrid.R
coordsFromEpmGrid | R Documentation |
Return the centroid coordinates for a specified set of grid cells.
coordsFromEpmGrid(x, sites)
x |
object of class |
sites |
locations of sites, see details. |
Sites can be cell indices as a numeric vector, or you can specify
sites = 'all'
to get all grid cells. If the epmGrid object
is hexagon-based, then all grid cells that are occupied are returned.
If the epmGrid is square-based, then all grid cells, occupied or empty,
are returned.
matrix with x and y coordinates.
Pascal Title
tamiasEPM
# from cell indices
cells <- c(2703, 90, 3112, 179)
coordsFromEpmGrid(tamiasEPM, cells)
# for all grid cells
dim(coordsFromEpmGrid(tamiasEPM, 'all'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.