[R-sig-Geo] maps to PBSmapping conversion

2010-11-25 Thread Ted Rosenbaum
Hi: When I run the following command to convert a US state polygon from the maps package to a polyset in PBSmapping, I obtain extra lines that should not be in there. plotMap(SpatialLines2PolySet(map2SpatialLines(map('state','maryland',interior=FALSE),proj4string=CRS(+proj=longlat +datum=wgs84

Re: [R-sig-Geo] maps to PBSmapping conversion

2010-11-25 Thread Roger Bivand
On Thu, 25 Nov 2010, Ted Rosenbaum wrote: Hi: When I run the following command to convert a US state polygon from the maps package to a polyset in PBSmapping, I obtain extra lines that should not be in there.