| spLayer.SpatialPoints {rleafmap} | R Documentation | 
Define a Vector Data Layer
Description
-  spLayer.SpatialPointsdefines a new data layer from an objectSpatialPointsorSpatialPointsDataFrame
-  spLayer.SpatialLinesdefines a new data layer from an objectSpatialLinesorSpatialLinesDataFrame
-  spLayer.SpatialPolygonsdefines a new data layer from an objectSpatialPolygonsorSpatialPolygonsDataFrame
Usage
## S3 method for class '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,
  ...
)
Arguments
| x | a spatial object (see Details). | 
| name | a character string to name the layer. | 
| png | character vector giving the paths for the PNG icons. If  | 
| size | a numerical vector giving the size of points (radius in pixels). | 
| png.width,png.height | numerical vectors giving the PNG icons dimensions on the map (in pixels). | 
| 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  | 
| legend | a legend object created with  | 
| ... | additional arguments to pass to the function. |