[R-sig-Geo] Problem with SpatialPolygons containing a hole

Hans-Jörg Bibiko bibiko at eva.mpg.de
Thu Jan 29 13:55:16 CET 2009


On 29.01.2009, at 13:08, Roger Bivand wrote:

> Set the pbg= argument to set the "bg" (background) to something  
> other than "transparent" - if it is transparent, the previously  
> plotted larger and encompassing polygon is still visible. I'm afraid  
> that the documentation, which should be in ?"SpatialPolygons-class"  
> where the plot method is described, is in the maptools package, in ? 
> plot.polylist - this will be fixed.

Thanks.

plot(pseSP,col='red', pbg='white')

works. But this also implies that:
- one is not able to create a transparent hole(?)
- and one has to care about the correct plotting order or to set the  
correct pbg if that 'hole' belongs to another polygon

Cheers,
--Hans




More information about the R-sig-Geo mailing list