Description Usage Arguments Details Value
Creates a display of selected color palettes
1 2 3 | CreateColorPaletteLegend (color_pal, color_range, color_alpha,
color_levels, color_increment, legend_levels, log, pos_x, pos_y, main,
main_cex, main_col, lab_col, signif_digits, left, plot_new)
|
color_pal |
color palette to be used, also allowed are two extremes or one value. Default is: c("yellow","red"). |
color_range |
two-valued vector, the minimum and maximum values. |
color_alpha |
two-digit rbga alpha value, "00" to "ff", default is "ff". Note: ExportKMLPOlygon() uses default "cc" |
color_levels |
one value, number of color levels. Ignored if color_interval not equal to NA. Default is 5. |
color_increment |
one value, increment value of color breakpoints, one value. Default is NA. |
legend_levels |
one value, increment in legend values, ignored if legend_values not equal to NA. Default is 5. |
legend_values |
vector of specific legend labels. Default is NA. |
log |
logical of whether to log transform. Default is FALSE. |
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". |
signif_digits |
integer, number of signifcant digits |
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, make sure code used for color range, selction, log-tranformation, and color palette creation is identical or produces same results. Color levels and legend levels use the pretty(), so the actual number of levels may not be identical to parameter values.
Plot of legend with color palette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.