Description Usage Arguments Details Value
Creates a legend for categorical data
1 2 3 | Usage: CreateCategoricalLegend (metadata, metadata_layer, color_alpha,
pos_x, pos_y, main, main_cex, main_col, lab_col, signif_digits, left,
plot_new)
|
metadata |
location of metadata .csv file. Metadata file must contain "id" and "icon_color" columns. |
metadata_layer |
not required, column name in metadata used for legend labels |
color_alpha |
two-digit rbga alpha value, "00" to "ff". |
pos_x |
relative position of left and right edge of color bar on first axis, [0,1]. Default is c(0.5, 0.55). |
pos_y |
relative position on lower and upper edge of colar bar on second axis, [0,1]. Default is c(0.05, 0.9). |
main |
main title, written above the color bar. Default is NA. |
main_cex |
relative size of main title. Default is 1. |
main_col |
color of main title, default is "black". |
lab_col |
color labels, default is "black". |
left |
logical indicating whether to put the labels on the left (TRUE) or on the right (FALSE). Default is FALSE. |
plot_new |
logical indicating whether to create a new plot, default is TRUE. |
Used in ExportKMLPolygon()
Plot of legend for categorical data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.