[R-sig-Geo] spplot: no boundary lines for polygons
Roger Bivand
Roger.Bivand at nhh.no
Tue May 5 15:46:10 CEST 2009
On Tue, 5 May 2009, Agustin Lobo wrote:
> 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"])
Yes, pass through the col="transparent" argument to the gpar() argument
gp= in the underlying grid.polygon() function used.
>
> (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())
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
>
> Is there any way of not plotting the boundaries of the polygons?
>
fortune("Yoda")
Roger
> Thanks
>
> Agus
>
>
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list