Learn R Programming

pals (version 1.9)

pal.channels: Show the red, green, blue, gray amount in colors of a palette

Description

The amount of red, green, blue, and gray in colors are shown.

Usage

pal.channels(pal, n = 150, main = "")

Value

None

Arguments

pal

A palette function or a vector of colors.

n

The number of colors to display for palette functions.

main

Main title.

Author

Kevin Wright

Details

What to look for:

1. Sequential data should usually be shown with a colormap that is smoothly increasing in lightness, as shown by the gray line.

References

None

Examples

Run this code
pal.channels(parula)
pal.channels(coolwarm)
# pal.channels(glasbey) # Nonsensical.

Run the code above in your browser using DataLab