Description Usage Arguments Value
Get colors for the different levels of a factor variable
1 | get_colors(groups, color_palette = palette())
|
groups |
A factor variable containing the group of each observation. |
color_palette |
The palette or vector of colors to be used. |
Return a vector of colors matching the levels of groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.