SaveGGPlot: Save last printed ggplot

Description Usage Arguments Details Value

Description

A wrapper function for ggsave()

Usage

1
SaveGGPlot(filename, path, width, height, units, dpi, bg)

Arguments

filename

String, file name/filename of plot

path

String, path to save plot to (if you just want to set path and not filename). If NULL(default), reverts to working directory

width

Numeric, width. Default is 10

height

Numeric, height. Default is 7.5

units

String, units for width and height when either one is explicitly specified (in, cm, or mm). Default is "in".

dpi

Integer, dpi to use for raster graphics. Default is 300.

bg

String, background color. Default is "white"

Details

Default output format is set for PowerPoint presentations

Value

Saves a png file of the last displayed plot


Blakemassey/baear documentation built on Dec. 25, 2021, 9:48 a.m.