Description Usage Arguments Details
plotToFile
writes plot to PNG file.
1 | plotToFile(plot, resultsDir, file, width = 800, height = 600)
|
plot |
Plot to be written to file |
resultsDir |
A character string giving the path to timestamped results directory |
file |
A character string giving name of file where the plot will be saved |
width |
An integer giving width of the device in pixels |
height |
An integer giving height of the device in pixels |
If keep_images
is set to 1 in the configuration file (see
importConfig
) then a subdirectory called images
will
be created in the timestamped results directory (see
makeResultDir
). plotToFile
writes the
designated plot to a PNG file within the images subdirectory.
The dimensions of the plot, in pixels, can be defined using width
and height
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.