Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cpsievert opened this issue Feb 20, 2017 · 1 comment
Closed

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

cpsievert opened this issue Feb 20, 2017 · 1 comment
Labels
bug an unexpected problem or unintended behavior coord 🗺️

Comments

@cpsievert
Copy link
Contributor

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?

@hadley
Copy link
Member

hadley commented Feb 26, 2017

Want to have a go at a PR? I think free scales probably should default to a warning, except for coords where it words (IIRC only coord_cartesian() and coord_flip())

@karawoo karawoo added bug an unexpected problem or unintended behavior coord 🗺️ labels Jun 12, 2017
@hadley hadley closed this as completed in b0eea4b Nov 1, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior coord 🗺️
Projects
None yet
Development

No branches or pull requests

3 participants