Register legend file

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?

Value

Writes file into standardized file structure.

Details

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

See also