Skip to content

expand_limits throws warnings #1795

Closed
Closed
@thomasp85

Description

@thomasp85

After the changes in befc4d0 where unused aesthetics throw a warning you now get a warning when using expand_limits() (that calls geom_blank() under the hood)

ggplot(mtcars) + 
  geom_point(aes(mpg, cyl)) + 
  expand_limits(x = c(-10, NA))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions