maptools (version 0.6-15)

sp2Mondrian: write map data for Mondrian

Description

The function outputs a SpatialPolygonsDataFrame object to be used by Mondrian

Usage

sp2Mondrian(SP, file)

Arguments

SP
a SpatialPolygonsDataFrame object
file
file where output is written

References

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

Examples

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

Run the code above in your browser using DataCamp Workspace