title: R ggplot2 with reshape (melt function) selectively graph data sets
body: <p>I am using ggplot to graph a number of data sets, however I would like to plot them so that each data set has its own <code>geom_line</code> function so that I can seperate the lines out and hide them if required.</p>
  
  <pre><code> ggplot(MeanFrameMelt, aes(x=variable, y=value, 
             color=Legend, group=Legend)) + geom_line()
  </code></pre>
  
  <p>Input table after transformed with the melt function in the package reshape:</p>
  
  <pre><code>Legend        variable  value
  table_A.txt V1  0.008927491
  table_B.txt V1  0.009080929
  table_C.txt V1  0.008513332
  table_D.txt V1  0.008337751
  table_A.txt V2  0.008957742
  table_B.txt V2  0.009100265
  table_C.txt V2  0.008508966
  </code></pre>
  
  <p>table A should be one <code>geom_line</code> (line on the graph) table B a second <code>geom_line</code> and so on. Is this possible or do I have to go back and change the melting of the previous data frame?</p>
  
  <p>Edit:
  ok this is the melt function:</p>
  
  <pre><code>library(plyr)
  library(reshape)    
  MeanFrameMelt &lt;- melt(MeanFrame2, id.vars="Legend")
  </code></pre>
  
  <p>The data i've given you is of only two points for each line, so imagine you have hundreds of points from each table (A, B, C, and D) hence there will be four lines on this graph. I want to be able to switch off each line with a checkbox, but for this I need to have a unique identifier for each line which will allow me to do this. So what I was thinking is to do a seperate <code>+ geom_line(for table A) + geom_line(for table B) + geom_line(for table C)...</code> </p>
  
  <p>I hope this clarifies thinks a bit.</p>
  
  <p>Edit2: this is what the graph looks like now, and it should look like this after aswell, but with 4 <code>geom_line</code> calls instead of just one that it has now:</p>
  
  <p><img src="https://i.stack.imgur.com/zjYon.jpg" alt="enter image description here"></p>