spLayer.SpatialGridDataFrame
defines a new data layer from an object SpatialGridDataFrame
.
# S3 method for SpatialGridDataFrame
spLayer(
x,
name = NULL,
layer,
cells.col = heat.colors(12),
cells.alpha = 1,
legend = NULL,
...
)
a spatial object (see Details).
a character string to name the layer.
which layer to select?
a vector of any of the three kinds of R color specifications giving a gradient to color the grid.
a vector of numeric values in \([0, 1]\) setting grid opacity.
a legend object created with layerLegend
.
additional arguments to pass to the function.