[R-sig-Geo] plot of sp SpatialPolygonsDataFrame: col not working?

Roger Bivand Roger.Bivand at nhh.no
Tue Oct 30 12:26:49 CET 2007


On Tue, 30 Oct 2007, Agustin Lobo wrote:

> Dear list,
>
> I'm plotting polygons with:
> displayDataset(GDAL.open("G:/PERU/imorm2007/test1TNT/PC1_3s.tif"))
> plot(boundary,lwd=2,col=2,add=T)
> plot(pols.ferns3,col=3,lwd=1,add=T)
>
> (cannot use spplot because I need the add=T)
> but the polygons are actually black, ignoring col. I think that this is
> because the boundaries of the polygons get displayed in black,
> regardless of the filling color, and my polygons are very narrow at this
> scale (which is the one I need). Is there any way of changing the color
> of the boundaries or just not displaying boundaries?

border=3 or border="transparent"

should do it.

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