maptools (version 0.8-40)

sp2Mondrian: write map data for Mondrian

Description

The function outputs a SpatialPolygonsDataFrame object to be used by Mondrian

Usage

sp2Mondrian(SP, file, new_format=TRUE)

Arguments

SP
a SpatialPolygonsDataFrame object
file
file where output is written
new_format
default TRUE, creates a text data file and a separate map file; the old format put both data sets in a single file - the map file is named by inserting "MAP\_" into the file= argument after the rightmost directory separator (if any)

References

http://www.theusrus.de/Mondrian/

Examples

Run this code
## 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)

Run the code above in your browser using DataLab