View source: R/Color_Palettes.R
Single_Color_Palette | R Documentation |
Selects colors from modified versions of RColorBrewer single colors palettes
Single_Color_Palette(pal_color, num_colors = NULL, seed_use = 123)
pal_color |
color palette to select (Options are: 'reds', 'blues', 'greens', 'purples', 'oranges', 'grays'). |
num_colors |
set number of colors (max = 7). |
seed_use |
set seed for reproducibility (default: 123). |
A vector of colors
See RColorBrewer for more info on palettes https://CRAN.R-project.org/package=RColorBrewer
pal <- Single_Color_Palette(pal_color = "reds", num_colors = 7)
PalettePlot(pal= pal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.