[R] Plot using colors
mysimbaa
adel.tekari at sisltd.ch
Mon Mar 3 11:03:07 CET 2008
Dear R users,
I have a problem since I try to plot my datas with different colors.
plot(tvar, var, xlab="zeit [s]",ylab="Variation [%]", col = ifelse(var <=
varstability, 'green','red'))
this works well!
But since I add a type="l" to my plot, it will color all the plot with
green!!!
Is there any solution? I avoid to use teachingDemos.
Thanks.
--
View this message in context: http://www.nabble.com/Plot-using-colors-tp15799930p15799930.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list