register_legend: Register legend file

View source: R/register_legend.R

register_legendR Documentation

Register legend file

Description

Register legend file

Usage

register_legend(data_id, label, value, r, g, b, overwrite = FALSE)

Arguments

data_id

Dataset id, composed of dataset and subdataset (e.g. 'CCI_landCover/landCover').

label

Character vector with labels matching input of value.

value

Numeric vector with unique grid value.

r

Numeric vector with red color intensity (0-255).

g

Numeric vector with green color intensity (0-255).

b

Numeric vector with blue color intensity (0-255).

overwrite

Logical. If a legend already exists, should it be modified?

Details

Registers a the legend for a gridded dataset, which can be used for standardized mapping and plotting.

Value

Writes file into standardized file structure.

See Also

build_descriptor


macroecology-society/masDMT documentation built on July 2, 2024, 4:08 a.m.