showPalettes | R Documentation |
For each specified set of palettes display each in the set.
showPalettes(palette="hcl", n=12, border="transparent", file=NULL)
palette |
Name of the palette. |
n |
Number of colors per palette with a default of 12. |
border |
Border between intervals. By default is off. |
file |
Name of pdf file that contains the list of colors with a default of the name of the palette. Default is name of palette with a |
Available palettes are "hcl"
for sequential palettes for each of 12 hues across the hcl color wheel in 30 degree intervals plus the qualitative scale of different hues and grayscale, "viridis"
, and "wesanderson"
.
David W. Gerbing (Portland State University; gerbing@pdx.edu)
# all hcl palettes based on each hue from 30 degrees of the color wheel,
# including "colors" and "grays"
# default is 12 colors per palette
#showPalettes()
# viridis palate, simulate continuity
#showPalettes("viridis", n=500, border="off")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.