# sp2Mondrian

0th

Percentile

##### write map data for Mondrian

The function outputs a SpatialPolygonsDataFrame object to be used by Mondrian

Keywords
spatial
##### 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)
##### Note

At this release, the function writes out a text file with both data and polygon(s) identified as belonging to each row of data.

##### References

http://rosuda.org/Mondrian/

• sp2Mondrian
##### Examples
xx <- readShapePoly(system.file("shapes/columbus.shp", package="maptools")[1])
sp2Mondrian(xx, file="columbus1.txt")
sp2Mondrian(xx, file="sids1.txt")