Learn R Programming

rleafmap (version 0.2.1)

spLayer.SpatialGridDataFrame: Define a Raster Data Layer

Description

spLayer.SpatialGridDataFrame defines a new data layer from an object SpatialGridDataFrame.

Usage

# S3 method for SpatialGridDataFrame
spLayer(
  x,
  name = NULL,
  layer,
  cells.col = heat.colors(12),
  cells.alpha = 1,
  legend = NULL,
  ...
)

Arguments

x

a spatial object (see Details).

name

a character string to name the layer.

layer

which layer to select?

cells.col

a vector of any of the three kinds of R color specifications giving a gradient to color the grid.

cells.alpha

a vector of numeric values in \([0, 1]\) setting grid opacity.

legend

a legend object created with layerLegend.

...

additional arguments to pass to the function.