Skip to content

Throw warning when using fixed coordinates with free scales? #2049

Closed
@cpsievert

Description

@cpsievert

The coord_fixed() bit in the example below is silently ignored.

library(ggplot2)
ggplot(mtcars) + 
  geom_point(aes(wt, mpg)) + 
  facet_wrap(~vs, scales = "free") + 
  coord_fixed()

I'm not sure whether ggplot2 should allow for fixed coordinates in conjunction with free scales, but assuming the answer is "no", maybe we should add a message/warning/error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorcoord 🗺️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions