JPlotToFile | R Documentation |
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()
.
JPlotToFile(filenames, plotExpr, ...)
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. |
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).
JPlotToPNG
, JPlotToTIFF
,
JPlotToPDF
, JPlotToEPS
,
JPlotToSVG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.