SavePlot: Saves last plot

Description Usage Arguments Details Value

Description

A function for saving the last displayed plot as a png, jpeg, or pdf.

Usage

1
SavePlot(filename, path, width, height, units, dpi)

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), uses working directory.

width

Numeric, width. Default is 10.

height

Numeric, height. Default is 7.5.

units

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

dpi

Integer, dpi to use for plotting. Default is 300.

Details

Default output format width and height are set for PowerPoint presentations

Value

Saves a file of the last displayed plot.


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