Skip to content

Commit 608d392

Browse files
committed
Update save.r
The parameter is called "filename", but the examples use "file".
1 parent ce2c873 commit 608d392

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/save.r

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
#' \dontrun{
2929
#' ratings <- qplot(rating, data=movies, geom="histogram")
3030
#' qplot(length, data=movies, geom="histogram")
31-
#' ggsave(file="length-hist.pdf")
32-
#' ggsave(file="length-hist.png")
33-
#' ggsave(ratings, file="ratings.pdf")
34-
#' ggsave(ratings, file="ratings.pdf", width=4, height=4)
31+
#' ggsave(filename="length-hist.pdf")
32+
#' ggsave(filename="length-hist.png")
33+
#' ggsave(ratings, filename="ratings.pdf")
34+
#' ggsave(ratings, filename="ratings.pdf", width=4, height=4)
3535
#' # make twice as big as on screen
36-
#' ggsave(ratings, file="ratings.pdf", scale=2)
36+
#' ggsave(ratings, filename="ratings.pdf", scale=2)
3737
#' }
3838
ggsave <- function(filename = default_name(plot), plot = last_plot(),
3939
device = default_device(filename), path = NULL, scale = 1,

0 commit comments

Comments
 (0)