cat_colours | R Documentation |
Helper function for generating categorical colour palette
cat_colours(vector, palette)
vector |
Vector of categorical data to generate palette for. |
palette |
Which RColorBrewer palette should be used. |
A named list of colours where the names correspond to the unique values of vector and the values correspond to their colours.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.