Dear all In order to clearly mark values wich are larger than a treshold value, I would like to color the surface below the line given by plot (yy~xx). To color is only the surface between abline (treshold) and yy if they are larger than the specific limit. I guess I can use the function polygon, but I can not find any valuable solution. I'm grateful to you for an advice or an example. Mike
xx <- c(1:100) yy <- rnorm(100) plot (yy~xx,type="l") abline (h=0.5,col="red") #?? how can I use polygon() #in order to color surface below yy value and > abline?? polygon(xx,yy,col="gray") --- 60 Minuten pro Monat gratis telefonieren: So werden bei sunrise treue Kunden belohnt! http://internet.sunrise.ch/de/wireline/wir_60.asp --- T�l�phoner gratuitement pendant 60 minutes: sunrise sait r�compenser les clients fid�les. http://internet.sunrise.ch/fr/wireline/wir_60.asp --- Telefonate gratuitamente per 60 minuti: sunrise premia cos� la vostra fiducia. http://internet.sunrise.ch/it/wireline/wir_60.asp --- ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
