[Rd] Re: polygon border colors

Denis White denis@mail.cor.epa.gov
Fri, 16 Feb 2001 09:09:14 -0800 (PST)


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?

thanks,

Denis

---------- Forwarded message ----------
Date: Thu, 15 Feb 2001 18:33:26 -0800 (PST)
From: Denis White <denis@mail.cor.epa.gov>
To: r-help@hypatia.math.ethz.ch
Subject: polygon border colors

Simple question: is it true that 

  polygon (x, y, col=vec, border=vec, ...)

will cycle through the vec colors for fills but not for
the border colors when sending multiple polygons?

thanks,

Denis White
   US EPA, 200 SW 35th St, Corvallis, Oregon, 97333 USA
   voice: 541.754.4476, email: white.denis@epa.gov
   web: www.epa.gov/wed/pages/staff/white/


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