| xyLayer {rasterVis} | R Documentation |
Create a RasterLayer from a function of the coordinates.
xyLayer(object, dirXY = y)
object |
A |
dirXY |
A expression indicating the function of |
A RasterLayer object.
Oscar Perpiñán Lamigueiro.
init, substitute, eval
f <- system.file("external/test.grd", package="raster")
r <- raster(f)
dirX <- xyLayer(r, x)
dirXY <-xyLayer(r, sqrt(x^2 + y^2))
levelplot(dirXY, margin=FALSE)