Learn R Programming

pals (version 1.9)

pal.scatter: Show a colormap with a scatterplot

Description

What to look for:

Usage

pal.scatter(pal, n = 50, 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

1. Can the colors of each point be uniquely identified?

References

None.

Examples

Run this code
pal.scatter(glasbey, n=31, main="glasbey") # FIXME add legend
pal.scatter(parula, n=10) # not a good choice

Run the code above in your browser using DataLab