Thanks!  That worked.

Jamie

On 3/8/06, Marc Schwartz (via MN) <[EMAIL PROTECTED]> wrote:
> On Wed, 2006-03-08 at 14:02 -0500, Jamieson Cobleigh wrote:
> > I have a barplot I have created using barplot2 and I have been able to
> > add points and lines (using the points and lines methods,
> > respectively).  I now need to add some polygons (triangles in
> > particular), that I want to be shaded to match bars in the plot.  I
> > can get the coordinates of the corners of the triangles, but don't
> > know how to draw the triangles.  I know there is the grid.polygon
> > method, but I don't know how to get it to draw on my plot.  Any help
> > would be appreciated.
> >
> > Thanks!
> >
> > Jamie
>
> There is a polygon() function in base R graphics. It supports a
> 'density' argument in the same fashion as barplot()/barplot2().
>
> See ?polygon
>
> help.search("polygon") would have gotten you there.
>
> HTH,
>
> Marc Schwartz
>
>
>

______________________________________________
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

Reply via email to