Re: [R] How to draw holes generated by gpclib using plot function

About this list Date view Thread view Subject view Author view Attachment view

From: Roger D. Peng (rpeng@jhsph.edu)
Date: Tue 11 May 2004 - 22:50:24 EST


Message-id: <40A0CC10.40602@jhsph.edu>

Sorry, but this limitation in plotting is something that I probably
should have mentioned in the help page. At the time when I wrote this
plotting wasn't really a priority so I never thought much of it.

The GPC C library has a function has a function to return a collection
of tristrips but this is not implemented in the R package. It
shouldn't be too difficult to include and I will hopefully include it
with the next release.

-roger

Hisaji ONO wrote:
> Hi.
>
> I've tried to create a polygon with one hole by gpclib using following
> example script.
>
> holepoly <- read.polyfile(system.file("poly-ex/hole-poly.txt", package
> ="gpclib"), nohole = FALSE)
> area.poly(holepoly)
> plot(holepoly,poly.args=list(col="red",border="blue"))
>
> And I noticed plot function couldn't draw polygons with holes correctly.
>
> Does anyone know how to solve this situation?
>
> Regards.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:09 EST