Skip to content

Commit 2b8a13d

Browse files
committed
Merge branch 'master' of github.com:hadley/ggplot2
2 parents 92cea24 + 4b08fea commit 2b8a13d

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("length-hist.pdf")
32+
#' ggsave("length-hist.png")
33+
#' ggsave("ratings.pdf", ratings)
34+
#' ggsave("ratings.pdf", ratings, width=4, height=4)
3535
#' # make twice as big as on screen
36-
#' ggsave(ratings, file="ratings.pdf", scale=2)
36+
#' ggsave("ratings.pdf", ratings, 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)