get_cols {pcutils} | R Documentation |
Get n colors
Description
Get n colors
Usage
get_cols(n = 11, pal = "col1")
Arguments
n |
how many colors you need |
pal |
col1~3; or a vector of colors, you can get from: |
Value
a vector of n colors
Examples
get_cols(10, "col2") -> my_cols
scales::show_col(my_cols)
scales::show_col(get_cols(15, RColorBrewer::brewer.pal(5, "Set2")))
[Package pcutils version 0.2.5 Index]