[R] shading

Uwe Ligges ligges at statistik.uni-dortmund.de
Sun Dec 15 11:37:08 CET 2002


Myriam Abramson wrote:
> 
> I need to shade one area of a graph. Any ideas on how to do that?

First set up your plot( ...., type = "n").
Then draw the shading using polygon(...., col = "grey"), after that the
lines() and points() to appear in front of it.

Uwe Ligges




More information about the R-help mailing list