addColumnNameForLabels: Add 'shinyLabel' column (attribute) to spatial vectors

View source: R/map.R

addColumnNameForLabelsR Documentation

Add shinyLabel column (attribute) to spatial vectors

Description

Add shinyLabel column (attribute) to spatial vectors

Usage

addColumnNameForLabels(x, columnNameForLabels, ...)

## Default S3 method:
addColumnNameForLabels(x, columnNameForLabels, ...)

## S3 method for class 'list'
addColumnNameForLabels(x, columnNameForLabels, ...)

## S3 method for class 'sf'
addColumnNameForLabels(x, columnNameForLabels, ...)

## S3 method for class 'SpatialPolygonsDataFrame'
addColumnNameForLabels(x, columnNameForLabels, ...)

## S3 method for class 'SpatVector'
addColumnNameForLabels(x, columnNameForLabels, ...)

Arguments

x

a spatial vector object (sf, SpatialPolygons, SpatVector)

columnNameForLabels

character or integer identifying an existing column (attribute) to use as the shinyLabel.

...

Additional arguments passed to other methods (not used)

Value

a modified object with the same class as x


PredictiveEcology/map documentation built on June 15, 2025, 6:15 a.m.