spLayer.SpatialPolygons {rleafmap}R Documentation

Define a Vector Data Layer

Description

Define a Vector Data Layer

Usage

## S3 method for class 'SpatialPolygons'
spLayer(
  x,
  name = NULL,
  stroke = TRUE,
  stroke.col = 1,
  stroke.lwd = 1,
  stroke.lty = -1,
  stroke.alpha = 1,
  fill = TRUE,
  fill.col = 2,
  fill.alpha = 0.5,
  label = NULL,
  popup = "",
  popup.rmd = FALSE,
  holes = FALSE,
  legend = NULL,
  ...
)

Arguments

x

a spatial object (see Details).

name

a character string to name the layer.

stroke

logical. Should a stroke be drawn along lines and polygons?

stroke.col

a vector of any of the three kinds of R color specifications to set strokes color.

stroke.lwd

a numerical vector to set strokes width.

stroke.lty

a character vector that defines the strokes dash patterns (See Details).

stroke.alpha

a vector of numeric values in [0, 1] setting strokes opacity.

fill

logical. Should points and polygons be filled?

fill.col

a vector of any of the three kinds of R color specifications to set fill colors.

fill.alpha

a vector of numeric values in [0, 1] setting fill opacity.

label

a reserved argument (in development).

popup

a character vector giving contents for popups. HTML tags are accepted.

popup.rmd

a logical indicating whether the popups should be processed as R Markdown with knitr. Default FALSE.

holes

a logical indicating whether to use the hole slots of the SpatialPolygons object.

legend

a legend object created with layerLegend.

...

additional arguments to pass to the function.


[Package rleafmap version 0.2.1 Index]