spLayer.SpatialGridDataFrame: Define a Raster Data Layer

View source: R/splayer.R

spLayer.SpatialGridDataFrameR Documentation

Define a Raster Data Layer

Description

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

Usage

## S3 method for class '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.


rleafmap documentation built on Oct. 20, 2023, 5:08 p.m.