save_plot: Save plot to chosen format

View source: R/visualization_utils.R

save_plotR Documentation

Save plot to chosen format

Description

Saves the given plot to a file. Supports pdf, svg, emf, png and tiff formats. If an error occurs with the plot, an empty file is created.

Usage

save_plot(p, file, ...)

Arguments

p

a ggplot object

file

the file path

...

other arguments to plot function, like width and height

See Also

pdf, emf, svg, png, tiff


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.