| goose_suggest_colors | R Documentation |
Get AI-powered color palette suggestions for data visualization.
goose_suggest_colors(purpose, n_colors = 5, brand = NULL, constraints = NULL)
purpose |
Character, the purpose of the palette (e.g., "heatmap", "categorical", "diverging") |
n_colors |
Integer, number of colors needed |
brand |
Optional brand name for brand-appropriate colors |
constraints |
Optional constraints (e.g., "colorblind-safe", "print-friendly") |
List with hex colors and rationale
## Not run:
# Get heatmap colors
colors <- goose_suggest_colors("heatmap", n_colors = 9)
# Get brand colors
colors <- goose_suggest_colors("categorical", n_colors = 5, brand = "Block")
# Get accessible colors
colors <- goose_suggest_colors("bar chart", n_colors = 4,
constraints = "colorblind-safe")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.