The amount of red, green, blue, and gray in colors are shown.
pal.channels(pal, n = 150, main = "")
A palette function or a vector of colors.
The number of colors to display for palette functions.
Main title.
None
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.
# NOT RUN { pal.channels(parula) pal.channels(coolwarm) # pal.channels(glasbey) # Nonsensical. # }
Run the code above in your browser using DataLab