Discrete ggplot2 scales using the brand accent palette from pal_brand().
scale_color_brand() is an alias of scale_colour_brand().
Arguments
- ...
Passed to
ggplot2::discrete_scale().
Details
The palette function interpolates when a plot needs more colours than the
brand defines, so the scale never runs out. Without a brand set, the scales
fall back to the pal_sequential_blue defaults via pal_brand().
See also
Other brand:
brand_info(),
clear_brand(),
pal_brand(),
use_brand()
Examples
df <- calc_percentage(podracing_survey, demo_gender)
ggplot(df, aes(demo_gender, pct, fill = demo_gender)) +
geom_col() +
scale_fill_brand()
