title: R ts.plot(): order of series
body: <p>I have a data frame like</p>
  
  <pre><code>    A   B   C   D   E   F
  2003-07 445 48  1126    512 277 677
  2003-08 429 77  1179    583 320 675
  2003-09 421 80  1077    488 288 627
  </code></pre>
  
  <p>I want to plot these time series on the same graph. I also want A B C to have the same colour (blue) and the others to be black. So I use</p>
  
  <pre><code>ts.plot(df,col=c(rep("blue",3),rep("black",3)))
  </code></pre>
  
  <p>This creates the correct time series plot, except the colours are applied to the wrong series: A B C are a mix of blue and black and so are D E F.  (Note that the real data frame has a lot more columns if that is the source of the problem.)</p>
  
  <p>What order does ts.plot() use?</p>
  
  <h1>EDIT</h1>
  
  <pre><code>df &lt;- structure(list(X = structure(1:3, 
  .Label = c("2003-07", "2003-08", "2003-09"), class = "factor"), 
   A = c(445L, 429L, 421L), B = c(48L, 77L, 80L),
   C = c(1126L, 1179L, 1077L), D = c(512L, 583L, 488L ), 
   E = c(277L, 320L, 288L), FF = c(677L, 675L, 627L)), 
  .Names = c("X", "A", "B", "C", "D", "E", "FF"), 
  class = "data.frame", row.names = c(NA, -3L))
  </code></pre>