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

Already on GitHub? Sign in to your account

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

Closed
orizon opened this Issue Sep 24, 2012 · 2 comments

Comments

Projects
None yet
3 participants

orizon commented Sep 24, 2012

This is discussed in detail at stackoverflow.

When I combine coord_flip() and facet_wrap(scales= "free_y" or "free_x") it makes the horizontal axis scale variable but it repeats the tick marks for the vertical facet axes only instead of for the horizontal facet axes only:

    c <- ggplot(diamonds, aes(clarity)) + geom_bar()
    c + facet_wrap(~cut, scales = "free_y") + coord_flip()

I am running ggplot2 version 0.9.2.1 on R 2.15.1 under Mac OS X. I would be very interested to hear of any potential workarounds.

Also, I am not sure that this is the place for it, but ggplot2 is great.

Owner

hadley commented Sep 24, 2012

You can not use free scales with a non-Cartesian coordinate system - we need to more clearly advertise this with an error or warning.

Collaborator

wch commented Oct 14, 2012

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

@wch wch closed this Oct 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment