diff --git a/R/save-figure.R b/R/save-figure.R index c4eefd5..7ca1b92 100644 --- a/R/save-figure.R +++ b/R/save-figure.R @@ -21,9 +21,9 @@ #' By default, plot will fill the space within margins. #' @param valign If size is set, where to place figure within margins. 1 = top, 0.5 = middle, 0 = bottom. (Default: 0.5) #' @param halign If size is set, where to place figure within margins. 1 = right, 0.5 = middle, 0 = left (Default: 0.5) -#' @param pagesize Page size of PDF output: "A4" or "A5". (Default: "A4") +#' @param pagesize Page size of output: "A4" or "A5". (Default: "A4") #' @param landscape Landscape page orientation? (Default: False) -#' @param pagedim Dimensions (width, height) of PDF output. Overrides pagesize and landscape arguments if used. +#' @param pagedim Dimensions (width, height) of output. Overrides pagesize and landscape arguments if used. #' #' @export #' @@ -163,7 +163,7 @@ save_figure <- function(figure, # Prepare figure figure <- prepare_figure(figure, ...) - # Save to PDF file + # Save to file figargs <- list(filename = filename, plot = figure$page, width = attr(figure$page, "width"), diff --git a/man/prepare_figure.Rd b/man/prepare_figure.Rd index 0d300e0..79bed25 100644 --- a/man/prepare_figure.Rd +++ b/man/prepare_figure.Rd @@ -58,11 +58,11 @@ By default, plot will fill the space within margins.} \item{halign}{If size is set, where to place figure within margins. 1 = right, 0.5 = middle, 0 = left (Default: 0.5)} -\item{pagesize}{Page size of PDF output: "A4" or "A5". (Default: "A4")} +\item{pagesize}{Page size of output: "A4" or "A5". (Default: "A4")} \item{landscape}{Landscape page orientation? (Default: False)} -\item{pagedim}{Dimensions (width, height) of PDF output. Overrides pagesize and landscape arguments if used.} +\item{pagedim}{Dimensions (width, height) of output. Overrides pagesize and landscape arguments if used.} } \description{ Prepare figure for saving