layer.SpatialPointsDataFrame: layer

View source: R/point_layer.R

layer.SpatialPointsDataFrameR Documentation

layer

Description

layer

Usage

## S3 method for class 'SpatialPointsDataFrame'
layer(data, layer_title = "layer1",
  byvar = NULL, col = NULL, ...)

Arguments

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

Value

A svis_layer


trosendal/svis documentation built on Jan. 28, 2023, 12:05 a.m.