From paul@stat.auckland.ac.nz  Sun Feb 18 22:41:56 2001
From: paul@stat.auckland.ac.nz (Paul Murrell)
Date: Mon, 19 Feb 2001 11:41:56 +1300
Subject: [Rd] Re: polygon border colors
References: <Pine.SUN.3.91.1010216085824.11176B@okapi.cor.epa.gov>
Message-ID: <012501c099fb$ffb7cad0$175dd882@stat.auckland.ac.nz>

Hi


> I think I see in do_polygon() in plot.c that border colors are
> not cycled, and that changes in the lines
>
> ...
>     PROTECT(border = FixupCol(CAR(args), dd->gp.fg)); args = CDR(args);
> ...
> GPolygon(i-start, x+start, y+start, USER,
> INTEGER(col)[num%ncol], INTEGER(border)[0], dd);
> ...
>     GPolygon(nx-start, x+start, y+start, USER,
>      INTEGER(col)[num%ncol], INTEGER(border)[0], dd);
> ...
>
> following the pattern for "col" might make cycling possible.
>
> Is this a change that I should try locally, or could this be
> considered for the standard version?


There is now a fix in the release version of R, which should come out fairly
soon.  There is also a fix to recycle the lty argument, plus documentation
and an example to show how you can get multiple polygons out of a single
call to polygon() using NA coordinates.

Thanks for the bug report and suggested solution.

Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: polygon border colors
Paul Murrell