Skip to content
Prev 5803 / 29559 Next

spplot - polygons with colored borderlines

On Tue, 26 May 2009, Ingo Holz wrote:

            
I believe that grid.polygon() as used in spplot() fills to the exact 
polygon boundary, so adding coloured boundary lines might only add a pixel 
in some places on some devices, half a point line width on vector devices. 
So if the polygons are only "dots", then that is simply their size. In 
spplot() I do not think that extracting and passing a colour vector is 
easy. It could be done with base graphics, but the plot order of the 
contiguous polygons would determine which got the extra pixels, and which 
got overpainted. I think that col="transparent" is about as much as you 
can get, really.

Roger