pals: Palette colors included in colortools

Description Usage Arguments Details Author(s) See Also Examples

View source: R/pals.R

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

1
  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)

Author(s)

Gaston Sanchez

See Also

wheel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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])

Example output

[1] "#E8DDCB" "#CDB380" "#036564" "#033649" "#031634"
 [1] "#69D2E7" "#6993E7" "#7E69E7" "#BD69E7" "#E769D2" "#E76993" "#E77E69"
 [8] "#E7BD69" "#D2E769" "#93E769" "#69E77E" "#69E7BD"

colortools documentation built on May 2, 2019, 2:10 p.m.

Related to pals in colortools...