PostScriptTrace           package:grImport           R Documentation

_C_o_n_v_e_r_t _P_o_s_t_S_c_r_i_p_t _f_i_l_e _t_o _R_G_M_L _f_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     Converts a PostScript file into an RGML file, which is an XML
     document describing an image that can be read into R.

_U_s_a_g_e:

     PostScriptTrace(file, outfilename,
                            charpath=TRUE, setflat=NULL)

_A_r_g_u_m_e_n_t_s:

    file: The name of the PostScript file.

outfilename: The name of the XML document.

charpath: A boolean indicating whether text in the PostScript file
          should be converted to vector outlines, or left as just text.

 setflat: A number that controls how many straight lines a curve is
          broken into.  Lower values break a curve into more lines. 

_D_e_t_a_i_l_s:

     This function calls ghostscript to do the conversion, so will only
     work if ghostscript is installed on your system.

     If text is converted to outlines, it can be drawn as outlines, or
     filled using a crude algorithm which may or may not work (see
     'grid.picture').  On the other hand, if text is left as just text,
     font information is not stored so the text may not end up looking
     much like the original.

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.cs.wisc.edu/~ghost/>

