Skip to content

In geom_pointrange, changes to the fatten arg are not reflected in the legend #4872

Closed
@davidhodge931

Description

@davidhodge931
library(ggplot2)

df <- data.frame(
  trt = factor(c(1, 1, 2, 2)),
  resp = c(1, 5, 3, 4),
  group = factor(c(1, 2, 1, 2)),
  upper = c(1.1, 5.3, 3.3, 4.2),
  lower = c(0.8, 4.6, 2.4, 3.6)
)

df %>% 
  ggplot() +
  geom_pointrange(aes(x = trt, y = resp, col = group, ymin = lower, ymax = upper),
                  fatten = 1)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions