[R] Filling graphic objects
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Wed Mar 12 13:13:00 CET 2003
On Wed, 12 Mar 2003, p.b.pynsent wrote:
> I have used polygon() to mark the confidence limits of a survival curve.
> In another project, I have used the col parameter to fill my boxplots.
>
> The poly() description refers to filling but actually produces
Did you mean polygon()?
> hatching (i.e. lines ).
> boxplot() does truly fill the boxes with a colour or shades of grey
> (e.g. col="red").
>
> My novices perception of R graphics is:
> If you can hatch it, you cannot fill it.
> If you can fill it you cannot hatch it.
>
> Is this correct or is there a way of hatching my boxplots and filling
> my polygons?
You can fill polygons or rectangles (rect()) by giving `col' and not
giving `density'.
You cannot AFAICS hatch boxplots using the existing code: they are
conventionally not filled or filled in light grey.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list