Continuous diverging scale
Examples
d <- expand.grid(x = 1:5, y = 1:5)
d$z <- d$x - d$y
ggplot2::ggplot(d, ggplot2::aes(x, y, fill = z)) +
ggplot2::geom_tile() +
cr_scale_diverging(aesthetics = "fill")
Continuous diverging scale
d <- expand.grid(x = 1:5, y = 1:5)
d$z <- d$x - d$y
ggplot2::ggplot(d, ggplot2::aes(x, y, fill = z)) +
ggplot2::geom_tile() +
cr_scale_diverging(aesthetics = "fill")