Skip to content

Commit ca4c732

Browse files
author
Sebastian Kopf
committed
revert to original
1 parent d63c64b commit ca4c732

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

man/ggsave.Rd

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44
\title{Save a ggplot with sensible defaults}
55
\usage{
66
ggsave(filename = default_name(plot), plot = last_plot(),
7-
device = default_device(ext), path = NULL, scale = 1,
7+
device = default_device(filename), path = NULL, scale = 1,
88
width = par("din")[1], height = par("din")[2], units = c("in", "cm",
9-
"mm"), dpi = 300, limitsize = TRUE, ext = default_ext(filename), ...)
9+
"mm"), dpi = 300, limitsize = TRUE, ...)
1010
}
1111
\arguments{
1212
\item{filename}{file name/filename of plot}
1313

1414
\item{plot}{plot to save, defaults to last plot displayed}
1515

16-
\item{device}{device to use, automatically extract from
17-
file name extension (or from paramter \code{ext} if
18-
specified)}
16+
\item{device}{device to use, automatically extract from file name extension}
1917

2018
\item{path}{path to save plot to (if you just want to set path and not
2119
filename)}
@@ -34,13 +32,7 @@ filename)}
3432
save images larger than 50x50 inches, to prevent the common error of
3533
specifying dimensions in pixels.}
3634

37-
\item{ext}{file extension to use for choosing the correct
38-
device (pdf, jpg, png, etc.), uses extension of the
39-
filename by default, specify if filename does not have an
40-
instructive extension (or none at all, e.g. in a
41-
temporary file)}
42-
43-
\item{...}{other arguments passed to graphics device}
35+
\item{...}{other arguments passed to graphics device}
4436
}
4537
\description{
4638
ggsave is a convenient function for saving a plot. It defaults to

0 commit comments

Comments
 (0)