Skip to content

spplot: no boundary lines for polygons

2 messages · Agustin Lobo, Roger Bivand

#
I have a complex shape file imported to R via rgdal
as a SPolDF. I want to display continuous attributes
with a color key but the black boundaries
of the polygons, which are small in general, introduce
"too much black" in the plot and the spatial variation
of the attribute is not correctly displayed.

What I do is
spplot(MMAMBCGUcombi["DIFPW"])

(BTW, where is the code for fig. 3.6 in the book? Perhaps I should be
using plot() instead of spplot(), but cannot find how to select
the actual atribute in the SPolDF in plot())

Is there any way of not plotting the boundaries of the polygons?

Thanks

Agus
#
On Tue, 5 May 2009, Agustin Lobo wrote:

            
Yes, pass through the col="transparent" argument to the gpar() argument 
gp= in the underlying grid.polygon() function used.
I think that the code is shown under the Figures menu, where you also find 
the reference to its placing in chunk 22 in vis_mod.R
fortune("Yoda")

Roger