xfig                package:grDevices                R Documentation

_X_F_i_g _G_r_a_p_h_i_c_s _D_e_v_i_c_e

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

     'xfig' starts the graphics device driver for producing XFig
     (version 3.2) graphics.

     The auxiliary function 'ps.options' can be used to set and view
     (if called without arguments) default values for the arguments to
     'xfig' and 'postscript'.

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

     xfig(file = ifelse(onefile, "Rplots.fig", "Rplot%03d.fig"),
          onefile = FALSE, ...)

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

    file: a character string giving the name of the file.   For use
          with 'onefile = FALSE' give a C integer format such as
          '"Rplot%03d.fig"' (the default in that case). (See
          'postscript' for further details.) 

 onefile: logical: if true allow multiple figures in one file. If
          false, assume only one page per file and generate a file
          number containing the page number.

     ...: further arguments to 'ps.options' accepted by 'xfig()':

          '_p_a_p_e_r' the size of paper in the printer.  The choices are
               '"A4"', '"Letter"' and '"Legal"' (and these can be
               lowercase).  A further choice is '"default"', which is
               the default.  If this is selected, the papersize is
               taken from the option '"papersize"' if that is set and
               to '"A4"' if it is unset or empty.

          '_h_o_r_i_z_o_n_t_a_l' the orientation of the printed image, a logical.
                Defaults to true, that is landscape orientation.

          '_w_i_d_t_h', '_h_e_i_g_h_t' the width and height of the graphics region
               in inches.  The default is to use the entire page less a
               0.25 inch border.

          '_f_a_m_i_l_y' the font family to be used.  This must be one of
               '"AvantGarde"', '"Bookman"', '"Courier"', '"Helvetica"',
               '"Helvetica-Narrow"', '"NewCenturySchoolbook"',
               '"Palatino"' or '"Times"'.

          '_p_o_i_n_t_s_i_z_e' the default point size to be used.

          '_b_g' the default background color to be used.

          '_f_g' the default foreground color to be used.

          '_p_a_g_e_c_e_n_t_r_e' logical: should the device region be centred on
               the page: defaults to 'TRUE'.

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

     Although 'xfig' can produce multiple plots in one file, the XFig
     format does not say how to separate or view them.  So 'onefile =
     FALSE' is the default.

     The 'file' argument is interpreted as a C integer format as used
     by 'sprintf', with integer argument the page number. The default
     gives files 'Rplot001.fig', ..., 'Rplot999.fig', 'Rplot1000.fig',
     ....  

     Line widths as controlled by 'par(lwd=)' are in multiples of
     5/6*1/72 inch.  Multiples less than 1 are allowed.  'pch="."' with
     'cex = 1' corresponds to a square of side 1/72 inch.

_N_o_t_e:

     Only some line textures ('0 <= lty < 4') are used.  Eventually
     this will be partially remedied, but the XFig file format does not
     allow as general line textures as the R model.  Unimplemented line
     textures are displayed as _dash-double-dotted_.

     There is a limit of 512 colours (plus white and black) per file.

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

     'Devices', 'postscript', 'ps.options'.

