hcl.colors {surveillance} | R Documentation |
If package colorspace is available, its
heat_hcl function is used to generate a color
palette. Otherwise, the function simply calls
heat.colors
(or grey.colors
if
use.color=FALSE
).
hcl.colors(ncolors = 100, use.color = TRUE)
ncolors |
the number of colors (>= 1) to be in the palette. |
use.color |
logical. Should the palette use colors? Otherwise grey levels are returned. |
A character vector of ncolors
colors.
heat_hcl
in package colorspace,
or heat.colors
in the base package grDevices.
barplot(rep(1,10), col = hcl.colors(10), axes = FALSE)