View source: R/register_legend.R
register_legend | R Documentation |
Register legend file
register_legend(data_id, label, value, r, g, b, overwrite = FALSE)
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? |
Registers a the legend for a gridded dataset, which can be used for standardized mapping and plotting.
Writes file into standardized file structure.
build_descriptor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.