Learn R Programming

MetStaT (version 1.0)

MetStaT.PlotToFile: Save results of R plotting expressions to files in a zip package.

Description

Executes supplied R plotting expressions, saves each plot as a separate graphical file, and bundles all files as a zip package.

Usage

MetStaT.PlotToFile(zipfile.name, filename.no.ext, plot.expressions, file.type, ...)

Arguments

zipfile.name
name of zip file that will contain all the plot outputs.
filename.no.ext
body of the file name for each of the plot results. A numbered index is added to this name.
plot.expressions
expressions that are to be executed in R and have a plot as a result.
file.type
which graphical output is to be used for writing the plots to a file. Can be either: "pdf", "bmp", "jpeg", "png", or "tiff", which will output the corresponding graphical format.
...
further arguments that are to be forwarded to the method which writes the plot to a file (eg. pdf (filename, output.width, output.height, ...)).

Value

A single zip file is returned, which will contain the seperate plots as individual files in the format chosen.