chooseColors: Create a list of colors from among a variety of color...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/chooseColors.R

Description

Create a list of colors from among a variety of color palettes.

Usage

1

Arguments

pal

A character that is the name of a palette. Must be one of “rich”, “cm”, “default”, “grey”, “gray”, “heat”, “jet”, “rainbow”, “topo”, or “terrain”.

num

The number of colors to be returned.

...

Other arguments to the various palette functions.

Value

A vector of colors of length num.

Author(s)

Derek H. Ogle, [email protected]

See Also

rich.colors in gplots, cm.colors, heat.colors, topo.colors, terrain.colors, rainbow, colorRampPalette, and colors.

Examples

1
2
3
4
5
6
7
n <- 20
# Color Wheels
pie(rep(1,n), col=chooseColors("rich",n))
pie(rep(1,n), col=chooseColors("rainbow",n))
pie(rep(1,n), col=chooseColors("topo",n))
pie(rep(1,n), col=chooseColors("gray",n))
pie(rep(1,n), col=chooseColors("jet",n))

droglenc/FSAWs documentation built on July 8, 2018, 7:01 a.m.