PxcorPycorFromCell | R Documentation |
Patches
coordinates from cells numbersReport the patches
coordinates pxcor
and pycor
given the cells
numbers as defined for a Raster*
object.
PxcorPycorFromCell(world, cellNum)
## S4 method for signature 'worldNLR,numeric'
PxcorPycorFromCell(world, cellNum)
world |
|
cellNum |
Integer. Vector of cells number. |
Matrix (ncol
= 2) with the first column pxcor
and the second
column pycor
in the order of the given cellNum
.
Sarah Bauduin
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
cellNum <- cellFromPxcorPycor(world = w1, pxcor = 0, pycor = 9)
PxcorPycorFromCell(world = w1, cellNum = cellNum)
cellNum <- cellFromPxcorPycor(world = w1, pxcor = c(0, 1, 2), pycor = 0)
PxcorPycorFromCell(world = w1, cellNum = cellNum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.