title: Plotting each year as separate series using ggplot2 and faceting
body: <p>I have data for nine rivers from 2001 to 2009. I want to create the graph of nine facets and each facets I want to have nine lines for each year. The x-axis would be from Jan to December. So far I have come up to this:</p>
  
  <p>The code I used is as follows:</p>
  
  <pre><code>testseries&lt;- read.csv("testseries.csv")
  meltedtestseries &lt;- melt(testseries,id=c("date"))
  head(meltedtestseries)
  ggplot(meltedtestseries,aes(x=date,y=value))+geom_line()+facet_wrap(~variable,scales="free")+xlab("Date")+ylab("Discharge(cms)")
  </code></pre>
  
  <p>The graph I obtained is as follows:
  <img src="https://i.stack.imgur.com/g7pwJ.png" alt="enter image description here"></p>
  
  <p>Now, I want to change the X axis in Months and plot nine curves for each year for each facet. I know I need to change color=year or something like that. But it didn't work out. Any help is highly appreciated. Thanks. </p>
  
  <p>The dataset can be found on <a href="https://www.dropbox.com/s/ykhu8vc9211xtzu/testseries.csv" rel="nofollow noreferrer">https://www.dropbox.com/s/ykhu8vc9211xtzu/testseries.csv</a></p>
  
  <p>Jdbaba</p>
  
  <p><strong>Edit: Extra information</strong></p>
  
  <p>I also tried this code: </p>
  
  <pre><code>ggplot(meltedtestseries,aes(x=as.Date(date),y=value,color=date))+geom_line()+facet_wrap(~variable,scales="free")+xlab("Date")+ylab("Discharge(cms)")
  </code></pre>