Skip to contents

VHA-branded discrete fill scale

Usage

scale_fill_vha(direction = 1, repeat_pal = FALSE, ...)

Arguments

direction

If -1, reverse the scale (defaults to 1)

repeat_pal

If TRUE, repeat the palette enough times to account for all discrete values

...

Additional arguments passed to ggplot2::discrete_scale()

Value

A ggplot2::discrete_scale() object.

Examples

library(ggplot2)
ggplot(mtcars, aes(factor(cyl), fill = factor(cyl))) +
  geom_bar() +
  scale_fill_vha()