layer.SpatialPointsDataFrame | R Documentation |
layer
## S3 method for class 'SpatialPointsDataFrame' layer(data, layer_title = "layer1", byvar = NULL, col = NULL, ...)
data |
The dataset in sp::SpatialPointsDataFrame format |
layer_title |
The human readable name of the layer in the map |
byvar |
The variable in the dataframe to use to colour the points. Will be coerced into a factor. If NULL, one colour will be used. |
col |
The colour(s) for the points. If you supply less colours than the number of levels in 'byvar', the colours will be reused. You my not supply more colours than levels in 'byvar'. |
... |
Other arguments |
A svis_layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.