Skip to content

even.steps = FALSE does not work when binning is done outside of scale_binned #3877

Closed
@pasipasi123

Description

@pasipasi123

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions