| Line 28... |
Line 28... |
| 28 |
\code{\link{postscript}} device, and post-processing the output file
|
28 |
\code{\link{postscript}} device, and post-processing the output file
|
| 29 |
using \code{ghostscript}. \code{bitmap} works in the same way using a
|
29 |
using \code{ghostscript}. \code{bitmap} works in the same way using a
|
| 30 |
\code{postscript} device and postprocessing the output as
|
30 |
\code{postscript} device and postprocessing the output as
|
| 31 |
\dQuote{printing}.
|
31 |
\dQuote{printing}.
|
| 32 |
|
32 |
|
| 33 |
You will need a recent version of \code{ghostscript} (5.10 and
|
33 |
You will need a version of \code{ghostscript} (5.10 and
|
| 34 |
later have been tested): the full path to the executable can be set by
|
34 |
later have been tested): the full path to the executable can be set by
|
| 35 |
the environment variable \env{R\_GSCMD}.
|
35 |
the environment variable \env{R\_GSCMD}.
|
| 36 |
|
36 |
|
| 37 |
The types available will depend on the version of \code{ghostscript},
|
37 |
The types available will depend on the version of \code{ghostscript},
|
| 38 |
but are likely to include
|
38 |
but are likely to include
|
| Line 49... |
Line 49... |
| 49 |
\code{"jpeggray"}, \code{"pdfwrite"}.
|
49 |
\code{"jpeggray"}, \code{"pdfwrite"}.
|
| 50 |
|
50 |
|
| 51 |
Note: despite the name of the functions they can produce PDF \emph{via}
|
51 |
Note: despite the name of the functions they can produce PDF \emph{via}
|
| 52 |
\code{type = "pdfwrite"}, and the PDF produced is not bitmapped.
|
52 |
\code{type = "pdfwrite"}, and the PDF produced is not bitmapped.
|
| 53 |
|
53 |
|
| - |
|
54 |
For formats which contain a single image, a file specification like
|
| - |
|
55 |
\code{Rplots\%03d.png} can be used: this is intepreted by GhostScript.
|
| - |
|
56 |
|
| 54 |
For \code{dev2bitmap} if just one of \code{width} and \code{height} is
|
57 |
For \code{dev2bitmap} if just one of \code{width} and \code{height} is
|
| 55 |
specified, the other is chosen to preserve aspect ratio of the
|
58 |
specified, the other is chosen to preserve aspect ratio of the
|
| 56 |
device being copied.
|
59 |
device being copied.
|
| 57 |
}
|
60 |
}
|
| 58 |
\value{
|
61 |
\value{
|