spLayerControl: Testing user inputs

View source: R/splayer.R

spLayerControlR Documentation

Testing user inputs

Description

This function tests arguments validity for the function spLayer.

Usage

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
)

Arguments

name

a character string to name the layer.

size

a numerical vector giving the size of points (radius in pixels).

legend

a legend object created with layerLegend.

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 [0, 1] setting strokes opacity.

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 [0, 1] setting fill opacity.

label

a reserved argument (in development).

popup

a character vector giving contents for popups. HTML tags are accepted.

holes

a logical indicating whether to use the hole slots of the SpatialPolygons object.


rleafmap documentation built on Oct. 20, 2023, 5:08 p.m.