Hi, I have a contour plot and I want to shade a polygon (the area below a line) but the polygon shading wipes out the contour lines. Does anybody know how to shade the polygon and still see the contour lines? Thanks. Jeff
If you look at the examples in ?xyplot.zoo in the zoo package there is an example of placing a rectangle behind a lattice plot. Maybe that applies here too? For classic graphics there is an example of displaying a rectangle behind a plot here: http://www.mayin.org/ajayshah/KB/R/html/g5.html On 1/29/07, J.M. Breiwick <jeff.breiwick at noaa.gov> wrote:> Hi, > > I have a contour plot and I want to shade a polygon (the area below a line) > but the polygon shading wipes out the contour lines. Does anybody know how > to shade the polygon and still see the contour lines? Thanks.
J.M. Breiwick wrote:> Hi, > > I have a contour plot and I want to shade a polygon (the area below a line) > but the polygon shading wipes out the contour lines. Does anybody know how > to shade the polygon and still see the contour lines? Thanks. >Hi Jeff, If you're talking about polygon.shadow in the plotrix package, you have to call that function before you draw the overlying figure and anything else that would lie within the shadow. Jim