pals | R Documentation |
This function can be used to display the palettes included in the package, or to show the color names of the specified palette
pals(name = NULL, bg = "white")
name |
optional argument to specify the name of the palette |
bg |
background color of the plot. Used only when
|
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)
Gaston Sanchez
wheel
# 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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.