Skip to content

boxplot computation fails when setting scale limits #3548

Closed
@cpsievert

Description

@cpsievert

Before 10fa001, this code produced the following image:

ggplot(PlantGrowth, aes(y = weight)) +
  geom_boxplot() +
  scale_y_continuous(limits = c(5, 7.5))

image

After 10fa001, it now produces a blank plot with this warning:

Warning message:
Computation failed in `stat_boxplot()`:
missing values and NaN's not allowed if 'na.rm' is FALSE

cc @thomasp85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions