printPlot: Print a plot to a specific file path

Description Usage Arguments Details

Description

This is equivalent to using the export feature in the RStudio plot interface, just faster and easier to program into a script.

Usage

1
printPlot(plot, name = "Rplot", w = 547, h = 438, path = "")

Arguments

plot

The plot object

name

Name of the plot to be printed

w

Width of plot in pixels. Default set to 547

h

Height of plot in pixels. Default set to 438

path

Base filepath of the directory to be printed to

Details

This function will automatically append today's date using the Sys.Date function to the end of the plot.


scottshepard/scottr documentation built on May 17, 2019, 2:15 a.m.