Re: [R] Giving vector of colors to line in plots

2011-02-07 Thread statmobile
On 02/07/2011 02:15 AM, Jinsong Zhao wrote: On 2011-2-7 14:15, statmobile wrote: set.seed(33) x <- rpois(7,lambda=7) y <- rpois(7,lambda=5) cols.x <- c(rep("black",2),rep("red",3),rep("black",2)) cols.y <- c(rep("blue",3),rep("yellow",2),rep("blue",2)) points.x <- c(rep("x",2),rep("O",3),rep("

Re: [R] Giving vector of colors to line in plots

2011-02-07 Thread Jim Lemon
On 02/07/2011 05:15 PM, statmobile wrote: Hey all, I can't for the life of me figure out what I'm missing here. I'm trying to change the color of the line in a time series type plot. I can change the point colors and symbols no problem, but for some reason the colors do not get passed to the lin

Re: [R] Giving vector of colors to line in plots

2011-02-07 Thread Peter Ehlers
On 2011-02-06 22:15, statmobile wrote: Hey all, I can't for the life of me figure out what I'm missing here. I'm trying to change the color of the line in a time series type plot. I can change the point colors and symbols no problem, but for some reason the colors do not get passed to the line

[R] Giving vector of colors to line in plots

2011-02-06 Thread statmobile
Hey all, I can't for the life of me figure out what I'm missing here. I'm trying to change the color of the line in a time series type plot. I can change the point colors and symbols no problem, but for some reason the colors do not get passed to the lines, regardless of if I do type="b" or