Skip to contents

Discrete ggplot2 scales using the brand accent palette from pal_brand(). scale_color_brand() is an alias of scale_colour_brand().

Usage

scale_fill_brand(...)

scale_colour_brand(...)

scale_color_brand(...)

Arguments

...

Passed to ggplot2::discrete_scale().

Value

A ggplot2 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().

Examples

df <- calc_percentage(podracing_survey, demo_gender)
ggplot(df, aes(demo_gender, pct, fill = demo_gender)) +
  geom_col() +
  scale_fill_brand()