Learn R Programming

upstartr (version 0.1.0)

write_plot: Write out a ggplot2 graphic with minimal configuration

Description

Takes a ggplot2 object and writes it to disk via ggplot2::ggsave using the variable name as the filename.

Usage

write_plot(variable, output_dir = dir_plots(), ...)

Arguments

variable

A tibble or dataframe object.

output_dir

The directory to save the plot out to.

...

Other settings to pass to ggsave, such as format, width, height or dpi.

Value

No return value, called for side effects