Learn R Programming

colortools (version 0.1.5)

pals: Palette colors included in colortools

Description

This function can be used to display the palettes included in the package, or to show the color names of the specified palette

Usage

pals(name = NULL, bg = "white")

Arguments

name
optional argument to specify the name of the palette
bg
background color of the plot. Used only when name=NULL (by default)

Details

When no name is given, a plot window will show the different palettes. If a name is given, then the function will return the names of the colors for that palette (no plot)

See Also

wheel

Examples

Run this code
# default use
pals()

# color names of palette 'terra'
pals("terra")

# pizza wheel for palette 'cheer'
pizza(pals("cheer"), init.angle = 90)

# color wheel for first color in palette 'fish'
wheel(pals("fish")[1])

Run the code above in your browser using DataLab