[R] How to color certain area under curve

Matthieu Dubois matthdub at gmail.com
Tue Mar 10 20:56:39 CET 2009


Just a small typo. I forgot a ) in the polygon function. 
The code must be: 
polygon(x = c(qrv[1], drv$x[select], qrv[2]), 
y = c(0, drv$y[select], 0), col='blue')




More information about the R-help mailing list