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

2005-12-29 Thread Don MacQueen
I have found this little function useful when trying to choose colors: showcols - function (indx = 0:6) { for (ii in unique(indx)) { is - 100 * ii + 1:100 if (min(is) length(colors())) { cat(Maximum value of arg is, floor(length(colors())/100),

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

2005-12-29 Thread Earl F. Glynn
Don MacQueen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have found this little function useful when trying to choose colors: FWIW: To choose colors, this page http://research.stowers-institute.org/efg/R/Color/Chart/index.htm and PDF

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

2005-12-27 Thread Uwe Ligges
Vincent Deng wrote: 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

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

2005-12-27 Thread Vincent Deng
Dear Uwe, Sorry, I did not describe my question clearly. I created a matrix to store color code using rgb function. abc = rgb(6:36,0,0,maxColorValue = 255) And after running codes like this for (i in c(1:20)) { points(...,...,col=abc[i]) lines(...,col=abc[i]) } R still used 8 colors of

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

2005-12-27 Thread Uwe Ligges
Vincent Deng wrote: Dear Uwe, Sorry, I did not describe my question clearly. I created a matrix to store color code using rgb function. abc = rgb(6:36,0,0,maxColorValue = 255) And after running codes like this for (i in c(1:20)) { points(...,...,col=abc[i])

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

2005-12-27 Thread Vincent Deng
Hi, Thanks for your kindly reply. I think maybe I didn't specify color codes properly. That is,the difference between each color is not sharp enough for me to identify them as different colors. So can you tell me about how to specify the color properly so that the difference among each color can

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

2005-12-27 Thread jim holtman
It might be hard to differentiate between each color with having 255 of them. Here is an example of using ColorRampPalette to create a set of colors. You can experiment with as many differing ones as you want to to get the difference that you want: # use 5 colors to create a sequence (you can

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

2005-12-26 Thread Vincent Deng
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