zcolors {ztoolbox} | R Documentation |
Provides a wrapper for simple selection of colors for typical meteorological parameters.
zcolors(n, parameter = c("std","rain","snow","temperature","terrain"), type=c("qualitative","sequential","diverge","warm","cold"), plot = FALSE, ...) show_palettes(n = 10, parameter = c("std","rain","snow","temperature","terrain"), type = c("qualitative","sequential","diverge","warm","cold"))
n |
number of colors. |
parameter |
one of |
type |
type of color palette. One of |
plot |
Shall an image be plotted? Can be |
... |
Other parameters that are transferred to the HCL routines (see details). |
Colors are provided based on the HCL color space, which is used as reference. See package colorspace
.
Function show_palettes
shows an overview of currently available colorsets.
A character string with HEX representation of the n
colors.
If plot = TRUE
an image with the chosen colorset is shown. Function show_palettes
only produces an overview image.
zcolors(8,plot=TRUE) zcolors(15,parameter="terrain",type="sequential",h2=60,plot=TRUE) show_palettes(12)