save_plot: Save plot

Description Usage Arguments Value See Also

View source: R/save-plot.R

Description

Saves current plot as a png file in current plots folder. The dpi is given by option poiscon.dpi which by default is 320.

Usage

1
2
3
save_plot(name = "plot", type = "figures", save_rows = 100,
  report = TRUE, caption = NULL, width = NULL, height = NULL,
  plot = ggplot2::last_plot())

Arguments

name

a character scalar of the name of the object.

type

a character scalar of the type of folder to save in.

save_rows

an integer scalar indicating the maximum of rows to save from the plot data as a csv file.

report

logical scalar indicating whether the plot should be displayed to an analysis report.

caption

character scalar of caption.

width

a numeric scalar indicating the percent of the page width (or if 10 or less the width of the page in inches). By default the width is taken from the width of the previous gwindow.

height

a numeric scalar indicating the percent of the page height (or if 10 or less the width of the page in inches). By default the height is taken from the height of the previous gwindow.

plot

Plot to save, defaults to last plot displayed.

Value

Saves current plot as png file in current plots folder.

See Also

gwindow


poissonconsulting/poiscon documentation built on Feb. 18, 2021, 11:16 p.m.