| sp2Mondrian {maptools} | R Documentation |
The function outputs a SpatialPolygonsDataFrame object to be used by Mondrian
sp2Mondrian(SP, file)
SP |
a SpatialPolygonsDataFrame object |
file |
file where output is written |
At this release, the function writes out a text file with both data and polygon(s) identified as belonging to each row of data.
Patrick Hausmann and Roger Bivand
http://www.theusrus.de/Mondrian/index.html
## Not run:
xx <- readShapePoly(system.file("shapes/columbus.shp", package="maptools")[1])
sp2Mondrian(xx, file="columbus1.txt")
xx <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1]))
sp2Mondrian(xx, file="sids1.txt")
## End(Not run)