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)
color_set |
the set of colors to use. Options:
|
num_colors |
the number of colors needed |
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.