R/plots.R
get_cols.Rd
Get n colors
get_cols(n = 11, pal = NULL, n_break = 5)
how many colors you need
"col1", "col2", "col3"; or a vector of colors, you can get from: RColorBrewer::brewer.pal(5,"Set2") or ggsci::pal_aaas()(5)
RColorBrewer::brewer.pal(5,"Set2")
ggsci::pal_aaas()(5)
default: 5
a vector of n colors
get_cols(10, "col2") -> my_cols scales::show_col(my_cols) # \donttest{ scales::show_col(get_cols(15, RColorBrewer::brewer.pal(5, "Set2"))) # }