title: Different axis limits per facet in ggplot2
body: <p>I am trying to make a faceted plot in <code>ggplot2</code> where the y axis shows labels and the x axis should show line graphs with the value for each label in two different measures (which are on different scales). So far I have this:</p>
  
  <pre><code>Data &lt;- structure(list(label = structure(
    c(1L, 1L, 2L, 2L, 3L, 3L, 4L, 
    4L, 5L, 5L, 6L, 6L), .Label = c("A", "B", "C", "D", "E", "F"), class = "factor"), 
    facet = structure(c(1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 
    1L, 2L), .Label = c("A", "B"), class = "factor"), value = c(0.0108889081049711, 
    0.37984336540103, 0.0232500876998529, 0.777756493305787, 
    0.0552913920022547, 0.920194681268185, 0.0370863009011373, 
    0.114463779143989, 0.00536034172400832, 0.469208759721369, 
    0.0412159096915275, 0.587875489378348), group = c(1, 1, 1, 
    1, 1, 1, 1, 1, 1, 1, 1, 1)), .Names = c("label", "facet", 
    "value", "group"), row.names = c(NA, -12L), class = "data.frame")
  
  ggplot(Data, aes(x = label, y = value, group = group)) + geom_line() + 
       facet_grid(~ facet, scales = "free") + coord_flip()
  </code></pre>
  
  <p>Which creates the following plot:
  <img src="https://i.stack.imgur.com/R07p7.png" alt="enter image description here"></p>
  
  <p>The problem is that the measures are on different scales and I would prefer the <code>A</code> plot to have x limits from 0 to 0.1 and the <code>B</code> plot to have x limits from 0 to 1. I thought <code>scales = "free"</code> should fix this but it doesn't change the plot.</p>