Skip to content

Commit dfb8de7

Browse files
Parameter order in examples now matches parameter order of function definition. Do not use variable names in example function calls when variables are in correct order.
1 parent 608d392 commit dfb8de7

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(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)
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, filename="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)