| Line 63... |
Line 63... |
| 63 |
\code{"tiffpack"}, \code{"tiff12nc"}, \code{"tiff24nc"}, \code{"tiff32nc"}
|
63 |
\code{"tiffpack"}, \code{"tiff12nc"}, \code{"tiff24nc"}, \code{"tiff32nc"}
|
| 64 |
\code{"psmono"}, \code{"psgray"}, \code{"psrgb"}, \code{"bit"},
|
64 |
\code{"psmono"}, \code{"psgray"}, \code{"psrgb"}, \code{"bit"},
|
| 65 |
\code{"bitrgb"}, \code{"bitcmyk"}, \code{"pngmono"}, \code{"pnggray"},
|
65 |
\code{"bitrgb"}, \code{"bitcmyk"}, \code{"pngmono"}, \code{"pnggray"},
|
| 66 |
\code{"pngalpha"}, \code{"png16"}, \code{"png256"}, \code{"png16m"},
|
66 |
\code{"pngalpha"}, \code{"png16"}, \code{"png256"}, \code{"png16m"},
|
| 67 |
\code{"png48"}, \code{"jpeg"}, \code{"jpeggray"}, \code{"pdfwrite"}.
|
67 |
\code{"png48"}, \code{"jpeg"}, \code{"jpeggray"}, \code{"pdfwrite"}.
|
| 68 |
|
68 |
|
| 69 |
The default type, \code{"png16m"}, supports 24-bit colour and
|
69 |
The default type, \code{"png16m"}, supports 24-bit colour and
|
| 70 |
anti-aliasing. Versions of \R prior to 2.7.0 defaulted to
|
70 |
anti-aliasing. Versions of \R prior to 2.7.0 defaulted to
|
| 71 |
\code{"png256"}, which uses a palette of 256 colours and could be a
|
71 |
\code{"png256"}, which uses a palette of 256 colours and could be a
|
| 72 |
more compact representation. Monochrome graphs can use
|
72 |
more compact representation. Monochrome graphs can use
|
| 73 |
\code{"pngmono"}, or \code{"pnggray"} if anti-aliasing is desired.
|
73 |
\code{"pngmono"}, or \code{"pnggray"} if anti-aliasing is desired.
|
| Line 76... |
Line 76... |
| 76 |
|
76 |
|
| 77 |
Note that for a colour TIFF image you probably want \code{"tiff24nc"},
|
77 |
Note that for a colour TIFF image you probably want \code{"tiff24nc"},
|
| 78 |
which is 8-bit per channel RGB (the most common TIFF format). None of
|
78 |
which is 8-bit per channel RGB (the most common TIFF format). None of
|
| 79 |
the listed TIFF types support transparency. \code{"tiff32nc"} uses
|
79 |
the listed TIFF types support transparency. \code{"tiff32nc"} uses
|
| 80 |
8-bit per channel CMYK, which printers might require.
|
80 |
8-bit per channel CMYK, which printers might require.
|
| 81 |
|
81 |
|
| 82 |
For formats which contain a single image, a file specification like
|
82 |
For formats which contain a single image, a file specification like
|
| 83 |
\code{Rplots\%03d.png} can be used: this is interpreted by Ghostscript.
|
83 |
\code{Rplots\%03d.png} can be used: this is interpreted by Ghostscript.
|
| 84 |
|
84 |
|
| 85 |
For \code{dev2bitmap} if just one of \code{width} and \code{height} is
|
85 |
For \code{dev2bitmap} if just one of \code{width} and \code{height} is
|
| 86 |
specified, the other is chosen to preserve aspect ratio of the
|
86 |
specified, the other is chosen to preserve aspect ratio of the
|
| Line 101... |
Line 101... |
| 101 |
|
101 |
|
| 102 |
\note{
|
102 |
\note{
|
| 103 |
#ifdef windows
|
103 |
#ifdef windows
|
| 104 |
Use of \code{bitmap} will leave a temporary file (with file name
|
104 |
Use of \code{bitmap} will leave a temporary file (with file name
|
| 105 |
starting \code{Rbit}).
|
105 |
starting \code{Rbit}).
|
| 106 |
|
106 |
|
| 107 |
#endif
|
107 |
#endif
|
| 108 |
Although using \code{type = "pdfwrite"} will work for simple plots, it
|
108 |
Although using \code{type = "pdfwrite"} will work for simple plots, it
|
| 109 |
is not recommended. Either use \code{\link{pdf}} to produce PDF
|
109 |
is not recommended. Either use \code{\link{pdf}} to produce PDF
|
| 110 |
directly, or call \command{ps2pdf -dAutoRotatePages=/None} on the
|
110 |
directly, or call \command{ps2pdf -dAutoRotatePages=/None} on the
|
| 111 |
output of \code{\link{postscript}}: that command is optimized to do
|
111 |
output of \code{\link{postscript}}: that command is optimized to do
|
| Line 121... |
Line 121... |
| 121 |
\itemize{
|
121 |
\itemize{
|
| 122 |
\item The default device size is 7 inches square.
|
122 |
\item The default device size is 7 inches square.
|
| 123 |
\item Font sizes are in big points.
|
123 |
\item Font sizes are in big points.
|
| 124 |
\item The default font family is (for the standard Ghostscript
|
124 |
\item The default font family is (for the standard Ghostscript
|
| 125 |
setup) URW Nimbus Sans.
|
125 |
setup) URW Nimbus Sans.
|
| 126 |
\item Line widths are as a multiple of 1/96 inch, with no minimum.
|
126 |
\item Line widths are as a multiple of 1/96 inch, with no minimum.
|
| 127 |
\item Circle of any radius are allowed.
|
127 |
\item Circle of any radius are allowed.
|
| 128 |
\item Colours are interpreted by the viewing/printing application.
|
128 |
\item Colours are interpreted by the viewing/printing application.
|
| 129 |
}
|
129 |
}
|
| 130 |
}
|
130 |
}
|
| 131 |
|
131 |
|
| 132 |
\seealso{
|
132 |
\seealso{
|
| 133 |
\code{\link{savePlot}}, which for \code{windows} and
|
133 |
\code{\link{savePlot}}, which for \code{windows} and
|
| 134 |
\code{X11(type = "cairo")} provides a simple way to record a PNG
|
134 |
\code{X11(type = "cairo")} provides a simple way to record a PNG
|
| 135 |
record of the current plot.
|
135 |
record of the current plot.
|
| 136 |
|
136 |
|
| 137 |
\code{\link{postscript}}, \code{\link{pdf}}, \code{\link{png}},
|
137 |
\code{\link{postscript}}, \code{\link{pdf}}, \code{\link{png}},
|
| 138 |
\code{\link{jpeg}}, \code{\link{tiff}} and \code{bmp}.
|
138 |
\code{\link{jpeg}}, \code{\link{tiff}} and \code{bmp}.
|
| 139 |
|
139 |
|
| 140 |
To display an array of data, see \code{\link{image}}.
|
140 |
To display an array of data, see \code{\link{image}}.
|
| 141 |
}
|
141 |
}
|