HDA-branded 4-color continuous color scale

scale_color_gradient_hda(
  ...,
  colors = c("#445ca9", "#8baeaa", "#e9ab3f", "#e76f52"),
  values = NULL,
  space = "Lab",
  na.value = "#cfcfd0",
  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 (#cfcfd0, HDA Light Gray)

guide

Legend representation for scale