Define a Vector Data Layer
# S3 method for SpatialLines
spLayer(
x,
name = NULL,
stroke = TRUE,
stroke.col = 1,
stroke.lwd = 1,
stroke.lty = -1,
stroke.alpha = 1,
label = NULL,
popup = "",
popup.rmd = 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.
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 legend object created with layerLegend
.
additional arguments to pass to the function.