diff --git a/R/save.r b/R/save.r index 98bd10e99a..51711571a8 100644 --- a/R/save.r +++ b/R/save.r @@ -25,7 +25,7 @@ #' @param filename File name to create on disk. #' @param plot Plot to save, defaults to last plot displayed. #' @param device Device to use. Can either be a device function -#' (e.g. [png()]), or one of "eps", "ps", "tex" (pictex), +#' (e.g. [png]), or one of "eps", "ps", "tex" (pictex), #' "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only). #' @param path Path of the directory to save plot to: `path` and `filename` #' are combined to create the fully qualified file name. Defaults to the diff --git a/man/ggsave.Rd b/man/ggsave.Rd index 8d6a6102b4..bcf6fc26a7 100644 --- a/man/ggsave.Rd +++ b/man/ggsave.Rd @@ -25,7 +25,7 @@ ggsave( \item{plot}{Plot to save, defaults to last plot displayed.} \item{device}{Device to use. Can either be a device function -(e.g. \code{\link[=png]{png()}}), or one of "eps", "ps", "tex" (pictex), +(e.g. \link{png}), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).} \item{path}{Path of the directory to save plot to: \code{path} and \code{filename}