PHA-branded 4-color continuous fill scale

scale_fill_gradient_pha(
  ...,
  colors = c("#5bab8e", "#a6cccc", "#f39152", "#be451c"),
  values = NULL,
  space = "Lab",
  na.value = "#e2e4e3",
  guide = "colorbar"
)

Arguments

...

Other arguments passed on to continuous_scale()

colors

Vector of colors

values

If colors should not be evenly positioned along the gradient, this vector gives the position (between 0 and 1) for each color in the vector

space

Color space in which to calculate gradient. Must be "Lab" - other values depreciated

na.value

Default color for NA values (#e2e4e3, PHA Light Gray)

guide

Legend representation for scale