[R] How to plot curves with more than 8 colors

From: Vincent Deng <bioflash_at_gmail.com>
Date: Tue 27 Dec 2005 - 18:47:49 EST


Hi,

I'm a new hand in R language. I have about 20 groups of data[x,y] and want to plot them on a graph. To do this, I write a for-loop as following: (some codes are omitted for simplicity)

for (i in c(1:20))
{
  points(...,...,col=i)
  lines(...,col=i)
}

The problem is "R only plot them with 8 colors repeatly". Could anyone help me solve this problem? Or is there any package providing plot function without color limit?

Best Regards...



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Dec 27 18:53:08 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:42 EST