| 27445 |
ripley |
1 |
\name{savePlot}
|
|
|
2 |
\alias{savePlot}
|
|
|
3 |
\title{Save Windows Plot to a File}
|
|
|
4 |
\usage{
|
|
|
5 |
savePlot(filename="Rplot",
|
|
|
6 |
type=c("wmf", "png", "jpeg", "jpg", "bmp", "ps", "pdf"),
|
|
|
7 |
device=dev.cur())
|
|
|
8 |
}
|
|
|
9 |
\arguments{
|
|
|
10 |
\item{filename}{The filename under which to save the plot, without
|
|
|
11 |
the extension.}
|
|
|
12 |
\item{type}{The type of plot, Windows metafile, PNG, JPEG, BMP
|
|
|
13 |
(Windows bitmap format), PostScript or PDF.}
|
|
|
14 |
\item{device}{A device number of a \code{windows} device, by default
|
|
|
15 |
the current device.}
|
|
|
16 |
}
|
|
|
17 |
\description{
|
|
|
18 |
Saves the current plot on a \code{windows} device to a file.
|
|
|
19 |
}
|
|
|
20 |
\details{
|
|
|
21 |
This is equivalent to selecting the \sQuote{Save as} menu item on the
|
|
|
22 |
\sQuote{File} menu of a \code{\link{windows}} device.
|
|
|
23 |
|
|
|
24 |
Using \code{filename} as \code{"clipboard"} or \code{""} with
|
|
|
25 |
\code{type = "wmf"} will copy to the clipboard.
|
|
|
26 |
}
|
|
|
27 |
\value{
|
|
|
28 |
None, but a plot file will be created.
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
\seealso{
|
|
|
32 |
\code{\link{windows}}, \code{\link{dev.print}}
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
\keyword{misc}
|