View source: R/color-palette.R
| generate_colors | R Documentation |
Generate color mapping for taxonomic groups
generate_colors(groups, palette = "viridis", color_mapping = NULL)
groups |
Character vector of group names |
palette |
Palette name (e.g., "viridis", "Set1", "rainbow") or color vector |
color_mapping |
Named vector of specific color assignments (highest priority) |
Named color vector (names = groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.