[R] How to draw holes generated by gpclib using plot function
Roger D. Peng
rpeng at jhsph.edu
Tue May 11 14:50:24 CEST 2004
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 at 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
>
More information about the R-help
mailing list