Closed
Description
even.steps = FALSE
should produce a stretched guide_colorsteps()
bar when the variable has uneven breaks. This works when binning is done inside scale_binned.
library(tidyverse)
mtcars %>%
mutate(mpg_cut = cut(mpg, c(seq(10, 25, 5), 35))) %>%
ggplot(aes(hp, mpg, color = mpg_cut)) +
geom_point() +
guides(color = guide_colorsteps(show.limits = TRUE, even.steps = FALSE))
Created on 2020-03-09 by the reprex package (v0.3.0)