title: Using coord_flip() with facet_wrap(scales = "free_y") in ggplot2 seems to give unexpected facet axis tick marks and tick labels
body: <p>I am trying to create a faceted plot with flipped co-ordinates where one and only one of the axes are allowed to vary for each facet:</p>
  
  <pre><code>require(ggplot2)
  p &lt;- qplot(displ, hwy, data = mpg)
  p + facet_wrap(~ cyl, scales = "free_y") + coord_flip()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/l6hNG.png" alt="enter image description here"></p>
  
  <p>This plot is not satisfactory to me because the wrong tick marks and tick labels are repeated for each plot. I want tick marks on every horizontal axis not on every vertical axis.</p>
  
  <p>This is unexpected behaviour because the plot implies that the horizontal axis tick marks are the same for the top panels as they are for the bottom ones, but they are not. To see this run:</p>
  
  <pre><code>p &lt;- qplot(displ, hwy, data = mpg)
  p + facet_wrap(~ cyl, scales = "fixed") + coord_flip()
  </code></pre>
  
  <p>So my question is: is there a way to remove the vertical axis tick marks for the right facets and add horizontal axis tick marks and labels to the top facets?</p>
  
  <p>As Paul insightfully points out below, the example I gave can be addressed by swapping x and y in qplot() and avoiding coord_flip(), however this does not work for all geoms for example, if I want a horizontal faceted bar plot with free horizontal axes I could run:</p>
  
  <pre><code>c &lt;- ggplot(diamonds, aes(clarity, fill=cut)) + geom_bar()
  c + facet_wrap(~cut, scales = "free_y") + coord_flip()
  </code></pre>
  
  <p><img src="https://imgur.com/ri8SH.png" alt="image"></p>
  
  <p>These facets have a variable horizontal axes but repeated vertical axis tick marks instead of repeated horizontal axes tick marks. I do not think Paul's trick will work here, because unlike scatter plots, bar plots are not rotationally symmetric.</p>
  
  <p>I would be very interested to hear any partial or complete solutions.</p>