hcl.colors: HCL-based Heat Colors from the 'colorspace' Package

Description Usage Arguments Value See Also Examples

View source: R/hcl.colors.R

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

1
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

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

surveillance documentation built on July 25, 2018, 1:01 a.m.