JPlotToFile: Plot to files

View source: R/plot_to_file.R

JPlotToFileR Documentation

Plot to files

Description

Writes the output of a plot to a file. The type of file is deduced from the extension of the file name. If you are using ggplot rather than base graphics, try either using JPlotToFile(filename, print(<plotting code>)) or ggsave().

Usage

JPlotToFile(filenames, plotExpr, ...)

Arguments

filenames

The names of one or more files to create or overwrite. If NULL, plot output goes to the current device.

plotExpr

A function or expression which will produce the plot to be written to the file.

...

Any additional arguments are passed to the appropriate function.

Value

The result of evaluating plotExpr when plotting to the last file in the filenames. The Vector is returned invisibly (which means it is not automatically printed).

See Also

JPlotToPNG, JPlotToTIFF, JPlotToPDF, JPlotToEPS, JPlotToSVG


JimMcL/JUtils documentation built on Nov. 7, 2024, 11:25 a.m.