Re: [R] countour and poygon shading

2007-01-30 Thread Jim Lemon
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

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] countour and poygon shading

2007-01-29 Thread Gabor Grothendieck
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 <[EMAIL PROTECTED]> 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.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] countour and poygon shading

2007-01-29 Thread J.M. Breiwick
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

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.