title: Generating Multiple Plots in ggplot by Factor
body: <p>I have a data set that I want to generate multiple plots for based on one of the columns. That is, I want to be able to use ggplot to make a separate plot for each variety of that factor.</p>
  
  <p>Here's some quick sample data:</p>
  
  <pre><code>Variety = as.factor(c("a","b","a","b","a","b","a","b","a","b")
  Var1 = runif(10)
  Var2 = runif(10)
  mydata = as.data.frame(cbind(Variety,Var1,Var2))
  </code></pre>
  
  <p>I'd like to generate two separate plots of Var1 over Var2, one for Variety A, a second for Variety B, preferably in a single command, but if there's a way to do it without splitting the table, that would be ok as well.</p>