save_plot: Save plot to file

View source: R/save_plot.R

save_plotR Documentation

Save plot to file

Description

After having defined a plot function, use this tool to save the plot to file (.png or .pdf).

Usage

save_plot(FUN, file = NULL, w = 6, h = 6, view = TRUE, ...)

Arguments

FUN

Function making the plots (e.g., hist)

file

Where to save the figure

w

Figure width in inches

h

Figure height in inches

view

Logical, open the saved file

...

Arguments passed to the FUN function

Examples

save_plot(hist, x = rnorm(1e3), file = tempfile(fileext = ".png"))

mrblasco/blasco documentation built on Nov. 22, 2022, 9:17 a.m.