title: ggplot2: How to swap y-axis and right facet strip and how to order facet values
body: <p>With the following code:</p>
  
  <pre><code>library(ggplot2)
  set.seed(6809)
  diamonds &lt;- diamonds[sample(nrow(diamonds), 1000), ]
  diamonds$cut &lt;- factor(diamonds$cut,
           levels = c("Ideal", "Very Good", "Fair", "Good", "Premium"))
  
  # Repeat first example with new order
  p &lt;- ggplot(diamonds, aes(carat, ..density..)) +
          geom_histogram(binwidth = 1)
  p + facet_grid(color ~ cut)
  </code></pre>
  
  <p>I can create the following figure:</p>
  
  <p><img src="https://i.stack.imgur.com/FYGCI.jpg" alt="enter image description here"></p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>How can I sort the right strip according to my desired order
  e.g. (G, F, D, E, I, J, H)?</li>
  <li>How can I swap the right strip to with the y-axis (density)?</li>
  </ol>