spatialAtRisk.RasterLayer {PmiscSpatial} | R Documentation |
Convert a RasterLayer to spatialAtRisk
spatialAtRisk.RasterLayer(X, ...)
X |
an object of class |
... |
not used |
A fromXYZ
object produced by
spatialAtRisk
library('raster') x = raster(matrix(1:12, 4,3,byrow=TRUE))/100 sum(values(x))*prod(res(x)) par(mfrow=c(1,2)) plot(x) ## Not run: library('lgcp') x2 = spatialAtRisk(x) sum(x2$Zm)*prod(res(x)) plot(x2) ## End(Not run)