spLayer.SpatialPoints
defines a new data layer from an object SpatialPoints
or SpatialPointsDataFrame
spLayer.SpatialLines
defines a new data layer from an object SpatialLines
or SpatialLinesDataFrame
spLayer.SpatialPolygons
defines a new data layer from an object SpatialPolygons
or SpatialPolygonsDataFrame
# S3 method for SpatialPoints
spLayer(
x,
name = NULL,
png = NULL,
size = 5,
png.width = 15,
png.height = 15,
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,
legend = NULL,
...
)
a spatial object (see Details).
a character string to name the layer.
character vector giving the paths for the PNG icons. If NULL
(default), circles are drawn.
a numerical vector giving the size of points (radius in pixels).
numerical vectors giving the PNG icons dimensions on the map (in pixels).
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 legend object created with layerLegend
.
additional arguments to pass to the function.