hcl.colors {surveillance}R Documentation

HCL-based Heat Colors from the colorspace Package

Description

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).

Usage

hcl.colors(ncolors = 100, use.color = TRUE)

Arguments

ncolors

the number of colors (>= 1) to be in the palette.

use.color

logical. Should the palette use colors? Otherwise grey levels are returned.

Value

A character vector of ncolors colors.

See Also

heat_hcl in package colorspace, or heat.colors in the base package grDevices.

Examples

barplot(rep(1,10), col = hcl.colors(10), axes = FALSE)

[Package surveillance version 1.16.1 Index]