Read a legend from a csv file, with four columns: Value (with pixel values), Label (with pixel labels), Short (with short names to be used when one wants to refer to the pixel values), and Color (strings with hexadecimal values, such as #1e33f4). This function returns a tibble with these four columns.
1 | readLegend(legend_file = NULL)
|
legend_file |
A csv file with the legend. As default, it uses the sits brazil legend. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.