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

Add warning for non-cartesian coords and free scales #675

Closed
wants to merge 1 commit into from

Conversation

wch
Copy link
Member

@wch wch commented Sep 25, 2012

This fixes #673.

# then print a warning
if ((!inherits(coord, "cartesian") || inherits(coord, "flip")) &&
(facet$free$x || facet$free$y)) {
warning("When free scales are used with a non-cartesian coord or with coord_flip,\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be stronger - i.e. stop and "ggplot2 does not currently support the combination of ..."

@wch
Copy link
Member Author

wch commented Oct 14, 2012

OK, I changed it to to an error, then rebased and merged at 272d3cb.

@lock
Copy link

lock bot commented Jan 19, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using coord_flip() with facet_wrap(scales = free_y) in ggplot2 gives unexpected facet axis tick marks
2 participants