r2gmt                  package:gmt                  R Documentation

_P_r_e_p_a_r_e _D_a_t_a _f_o_r _G_M_T

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

     This function handles data that will be annotated on a GMT map,
     writing them to a temporary file. Although it is an internal
     function, users may find it handy for some tasks.

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

     r2gmt(x, outfile, append=FALSE)

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

       x: data frame, matrix, or filename containing the data to be
          written to a temporary file.

 outfile: filename where the data will be written in GMT format,
          tab-separated without header.

  append: whether data should be appended to an existing file,
          separating segments with ">" lines.

_D_e_t_a_i_l_s:

     If 'x' is a filename, the data should be tabular with or without a
     header, separated by commas or whitespace. The first line is
     interpreted as header if the first non-whitespace character is not
     minus, point, or number.

_V_a_l_u_e:

     The data frame that was written to 'outfile'.

_N_o_t_e:

     This function is primarily an internal function, but users may
     find it handy for their own plotting functions.

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

     Arni Magnusson arnima@u.washington.edu.

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

     'scan', 'read.table', 'write', 'write.table'.

     'gmt-package' gives an overview of the package.

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

     LonLat1 <- data.frame(Lon=1:3, Lat=4:6)
     LonLat2 <- data.frame(Lon=7:8, Lat=9:10)
     ## Not run: 
     r2gmt(LonLat1, "temp.gmt")
     r2gmt(LonLat2, "temp.gmt", append=TRUE)
     ## End(Not run)

