

   pictex {base}                                R Documentation

   AA PPiiccTTeeXX GGrraapphhiiccss DDrriivveerr

   DDeessccrriippttiioonn::

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

   UUssaaggee::

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

   AArrgguummeenntts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Auutthhoorr((s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Reeffeerreennccees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Seeee AAllssoo::

        `postscript', `Devices'.

   EExxaammppllees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 $$

