This function tests arguments validity for the function spLayer
.
spLayerControl(
name,
size = 1,
legend = legend,
stroke = TRUE,
stroke.col = 1,
stroke.lwd = 1,
stroke.lty = 1,
stroke.alpha = 1,
fill = TRUE,
fill.col = 1,
fill.alpha = 1,
label = "",
popup = "",
holes = FALSE
)
a character string to name the layer.
a numerical vector giving the size of points (radius in pixels).
a legend object created with layerLegend
.
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 to use the hole
slots of the SpatialPolygons
object.