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 |
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 |
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 |
holes |
a logical indicating whether to use the |
legend |
a legend object created with |
... |
additional arguments to pass to the function. |