Re: [R] Plot segments with different colors

2007-11-13 Thread Jim Lemon
mysimbaa wrote: > Hello Everybody, > I'm trying to plot(x,y) using different colors. > I have to cut (x,y) into sub intervals. > And I want to plot this sub intervals using colors. But infortunally I don't > know how to do this with R. > Can any body help me please? > > My code is looking like :

Re: [R] Plot segments with different colors

2007-11-13 Thread mysimbaa
Another question concerning the type. plot(x,F,xlab="Zeit [s]",ylab="Variation [%]",col = rep(c("red", "blue", "magenta"), c(t0, ts, n)),type=c("p", "l","o")) Doesnt change the type with differents colors! (I become only one type and my color is red) How can I solve this? -- View this message

Re: [R] Plot segments with different colors

2007-11-13 Thread Ken Knoblauch
gt; Dimitris > > > Dimitris Rizopoulos > > - Original Message - > From: "mysimbaa" sisltd.ch> > To: r-project.org> > Sent: Tuesday, November 13, 2007 9:46 AM > Subject: [R] Plot segments with different colors > > > > > Hell

Re: [R] Plot segments with different colors

2007-11-13 Thread Dimitris Rizopoulos
uot; <[EMAIL PROTECTED]> To: Sent: Tuesday, November 13, 2007 9:46 AM Subject: [R] Plot segments with different colors > > Hello Everybody, > I'm trying to plot(x,y) using different colors. > I have to cut (x,y) into sub intervals. > And I want to plot this sub intervals

[R] Plot segments with different colors

2007-11-13 Thread mysimbaa
Hello Everybody, I'm trying to plot(x,y) using different colors. I have to cut (x,y) into sub intervals. And I want to plot this sub intervals using colors. But infortunally I don't know how to do this with R. Can any body help me please? My code is looking like : x<-c(tvar[1:t0],tvar[t0:(ts)],t