Learn R Programming

tis (version 1.39)

setColors: Set the Graphics Palette and Default Colors

Description

Sets the color palette (used when a col= has a numeric index) to a given vector of colors, and also sets the graphics parameters (see par) col, col.axis, col.lab, col.main, col.sub and fg to colors[1].

Usage

setColors(colors)

Arguments

colors

a character vector

Value

The new color palette.

See Also

palette, par