get_cols | R Documentation |
Get n colors
get_cols(n = 11, pal = NULL, n_break = 5)
n |
how many colors you need |
pal |
"col1", "col2", "col3"; or a vector of colors, you can get from: |
n_break |
default: 5 |
a vector of n colors
get_cols(10, "col2") -> my_cols
scales::show_col(my_cols)
scales::show_col(get_cols(15, RColorBrewer::brewer.pal(5, "Set2")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.