View source: R/make_color_set.R
make_color_set | R Documentation |
Create a set of colors for use in graphs
make_color_set(color_set, num_colors, shade = NA)
color_set |
the set of colors to use. Options:
|
num_colors |
the number of colors needed |
shade |
for the color_sets "blues", "blue-green", "greens", "purples", "reds", and "rainbow", the shade of colors to use, which can be "regular" "darker", or "lighter". This will be ignored for other supplied values for color_set. |
a character vector of color names
make_color_set("blues", 10)
make_color_set("Tableau", 3)
# You can see the colors with show_col from the scales package.
make_color_set("viridis", 5) %>% scales::show_col()
make_color_set("Brewer set 1", 4) %>% scales::show_col()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.