pictex               package:grDevices               R Documentation

_A _P_i_c_T_e_X _G_r_a_p_h_i_c_s _D_r_i_v_e_r

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

     This function produces graphics suitable for inclusion in TeX and
     LaTeX documents.

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

     pictex(file = "Rplots.tex", width = 5, height = 4, debug = FALSE,
            bg = "white", fg = "black")

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

    file: the file where output will appear.

   width: The width of the plot in inches.

  height: the height of the plot in inches.

   debug: should debugging information be printed.

      bg: the background color for the plot.  Ignored.

      fg: the foreground color for the plot.  Ignored.

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

     This driver does not have any font metric information, so the use
     of 'plotmath' is not supported.

     Multiple plots will be placed as separate environments in the
     output file.

     Line widths are ignored except when setting the spacing of line
     textures. 'pch="."' corresponds to a square of side 1pt.

     This device does not support colour (nor does the PicTeX package),
     and all colour settings are ignored.

_C_o_n_v_e_n_t_i_o_n_s:

     This section describes the implementation of the conventions for
     graphics devices set out in the "R Internals Manual".


        *  The default device size is 5 inches by 5 inches.

        *  There is no 'pointsize' argument: the default size is
           interpreted as 10 point.

        *  The only font family is 'cmss10'.

        *  Line widths are only used when setting the spacing on line
           textures.

        *  Circle of any radius are allowed.

        *  Colour is not supported.

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

     This driver was provided by Valerio Aimale
     valerio@svpop.com.dist.unige.it of the Department of Internal
     Medicine, University of Genoa, Italy.

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

     Knuth, D. E. (1984) _The TeXbook._ Reading, MA: Addison-Wesley.

     Lamport, L. (1994) _LATEX: A Document Preparation System._
     Reading, MA: Addison-Wesley.

     Goossens, M., Mittelbach, F. and Samarin, A. (1994) _The LATEX
     Companion._ Reading, MA: Addison-Wesley.

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

     'postscript', 'Devices'.

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

     require(graphics)

     pictex()
     plot(1:11,(-5:5)^2, type='b', main="Simple Example Plot")
     dev.off()
     ##--------------------
     ## Not run: 
     %% LaTeX Example
     \documentclass{article}
     \usepackage{pictex}
     \begin{document}
     %...
     \begin{figure}[h]
       \centerline{\input{Rplots.tex}}
       \caption{}
     \end{figure}
     %...
     \end{document}

     %%-- plain TeX Example --
     \input pictex
     $$ \input Rplots.tex $$
     ## End(Not run)
     ##--------------------
     unlink("Rplots.tex")

