area2dxf             package:adehabitat             R Documentation

_E_x_p_o_r_t_a_t_i_o_n _o_f _A_r_e_a_s

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

     'area2dxf' exports a data frame of class 'area' in a DXF file. 
     Such files can be read by virtually all Geographic Information
     Systems.

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

     area2dxf(x, file, lay = 1:nlevels(factor(x[, 1])))

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

       x: an object of class 'area'

    file: a character string giving the name of the DXF file to be
          created

     lay: an optional vector with a length equal to the number of
          polygons in 'x'. This vector is then stored in the field
          "Layer" of the DXF file (see examples), for GIS mapping

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

     Clment Calenge calenge@biomserv.univ-lyon1.fr

_S_e_e _A_l_s_o:

     'as.area', 'area.plot'

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

     ## Not run: 
       ## Loads the dataset elec88 from the package ade4
       data(elec88)
       ar <- as.area(elec88$area)
       area.plot(ar, lab = elec88$lab, clab = 0.75)
       
       ## exportation of the departments toward a dxf file
       area2dxf(ar, file = "Dept", lay = elec88$lab)
       
       ## Removes the file
       file.remove("Dept.dxf")
     ## End(Not run)

