Skip to contents

Create a scale with manually specified breaks for surprise values.

Usage

scale_fill_surprise_manual(
  breaks = c(0.5, 1, 1.5, 2),
  colors = c("#ffffb2", "#fecc5c", "#fd8d3c", "#f03b20", "#bd0026"),
  name = "Surprise",
  labels = waiver(),
  na.value = "grey50",
  ...
)

Arguments

breaks

Numeric vector of break points

colors

Character vector of colors (length should be length(breaks) + 1 for binned, or length(breaks) for continuous)

name

Legend title

labels

Labels for legend

na.value

Color for NA values

...

Additional arguments

Value

A ggplot2 scale object