View source: R/brewer_GG_col.R
brewer_GG_col | R Documentation |
Select R color brewer palette and display swatch and hexcodes see tidyExt vignette
brewer_GG_col(
nColours = 4,
my_palette = "Paired",
type = "div",
nExtendColours = nColours,
plot = T
)
nColours |
Number of colours to select from palette. These will be evenly spaced across palette. |
my_palette |
An RColourBrewer palette name (see RColorBrewer::display.brewer.all()) |
type |
Type of palette - one of "seq" (sequential), "div" (diverging) or "qual" (qualitative) |
nExtendColours |
If more colours are desired than are available in the standard palette, specify total colours here. |
plot |
Default will plot the colour palette with the hex codes overlaid. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.