[Rd] Re: polygon border colors

Paul Murrell paul@stat.auckland.ac.nz
Mon, 19 Feb 2001 11:41:56 +1300


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._