LSD (version 4.0-0)

disco: Disco (DISplays COlorpalettes)

Description

Displays pre-designed colorpalettes as well as custom-made ones (see colorpalette).

Usage

disco(colpal = NULL, nrcol = NULL, alpha = NULL)

Arguments

colpal

a character vector containing R built-in color names or a name of a LSD colorpalette as a character string (displays all colorpalettes, if not specified).

nrcol

a non-negative integer specifying the number of colors to be used (defaults to length of colpal, if not specified).

alpha

alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default).

See Also

colorpalette, demotour

Examples

Run this code
# NOT RUN {
disco()
disco("rdbu",10)
# }

Run the code above in your browser using DataCamp Workspace