

pictex {base}                                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.

      fg: the foreground color for the plot.

_A_u_t_h_o_r_(_s_)_:

     This driver was provided by Valerio Aimale vale-
     rio@svpop.com.dist.unige.it of the Department of Inter-
     nal Medicine, University of Genoa, Italy.

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

     Knuth, D. E. (1984).  The TeXbook.  Reading, MA: Addi-
     son-Wesley.

     Lamport, L. (1994).  LATEX: A Document Preparation Sys-
     tem.  Reading, MA: Addison-Wesley.

     Goossens, M., F. Mittelbach and A. Samarin (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_:

     pictex()
     plot(1:11,(-5:5)^2, type='b', main="Simple Example Plot")
     dev.off()
     ##--------------------

     %% LaTeX Example
     \documentclass{article}
     \usepackage{pictex}
     \begin{document}
     %...
     \begin{figure}[h]
       \centerline{\input{Rplots.tex}}
       \caption{}
     \end{figure}
     %...
     \end{document}

     %%-- TeX Example --
     \input pictex
     $$ \input Rplots.tex $$

