save_plot: Save Object as .png

Description Usage Arguments

View source: R/save.R

Description

Save Object as .png

Usage

1
2
3
4
save_plot(x, sub = get_sub(), main = get_main(), caption = "",
  report = TRUE, width = NA_real_, height = NA_real_, dpi = 300,
  csv = TRUE, ask = getOption("subfoldr.ask", TRUE),
  plot = ggplot2::last_plot())

Arguments

x

A string of the plot name.

sub

A string of the path to the directory to save the object.

main

A string of the main subfolder.

caption

A string of the figure caption.

report

A flag indicating to include the plot in reports.

width

A number indicating the width of the plot in inches.

height

A number indicating the height of the plot in inches.

dpi

A number indicating plot resolution.

csv

A flag indicating whether to save a csv of the plot data.

ask

A string indicating whether to ask before creating a sub directory.

plot

A plot object.


poissonconsulting/subfoldr documentation built on Feb. 18, 2021, 11:17 p.m.