Skip to content

Top key missing in guide_bins when reverse = TRUE #4210

Closed
@petrbouchal

Description

@petrbouchal

When guide_bins() is used with the reverse param set to TRUE, the key for the top bin is missing (and it seems the entire scale is shifted down in the key).

Tested on current dev ggplot2.

library(ggplot2)
df <- data.frame(a = 1:100, b = 1:100)

ggplot(df) +
  geom_point(aes(colour = b, x = a, y = b)) +
  guides(colour = guide_bins(reverse = T))

26d9d09b-64e1-4a34-b666-be1f3fe000cb

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions