[R] Plot segments with different colors
mysimbaa
adel.tekari at sisltd.ch
Tue Nov 13 09:46:24 CET 2007
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)],tvar[ts:n])
F<-c(var[1:t0],var[t0:(ts)],var[ts:n])
plot(x,F,xlab="Zeit [s]",ylab="Variation [%]",col = "red",type="l")
Thanks
--
View this message in context: http://www.nabble.com/Plot-segments-with-different-colors-tf4796466.html#a13721834
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list