Define a Vector Data Layer
# S3 method for 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, ...)a spatial object (see Details).
a character string to name the layer.
logical. Should a stroke be drawn along lines and polygons?
a vector of any of the three kinds of R color specifications to set strokes color.
a numerical vector to set strokes width.
a character vector that defines the strokes dash patterns (See Details).
a vector of numeric values in \([0, 1]\) setting strokes opacity.
logical. Should points and polygons be filled?
a vector of any of the three kinds of R color specifications to set fill colors.
a vector of numeric values in \([0, 1]\) setting fill opacity.
a reserved argument (in development).
a character vector giving contents for popups. HTML tags are accepted.
a logical indicating whether the popups should be processed as R Markdown with knitr. Default FALSE.
a logical indicating whether to use the hole slots of the SpatialPolygons object.
a legend object created with layerLegend.
additional arguments to pass to the function.