sp2Mondrian             package:maptools             R Documentation

_w_r_i_t_e _m_a_p _d_a_t_a _f_o_r _M_o_n_d_r_i_a_n

_D_e_s_c_r_i_p_t_i_o_n:

     The function outputs a SpatialPolygonsDataFrame object to be used
     by Mondrian

_U_s_a_g_e:

     sp2Mondrian(SP, file, new_format=TRUE)

_A_r_g_u_m_e_n_t_s:

      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)

_N_o_t_e:

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

_A_u_t_h_o_r(_s):

     Patrick Hausmann and Roger Bivand

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://rosuda.org/Mondrian/>

_E_x_a_m_p_l_e_s:

     ## 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)

