View source: R/utilities-export.R
exportPlot | R Documentation |
Save a ggplot
object according to its export properties
exportPlot(
plotObject,
fileName = NULL,
name = NULL,
format = NULL,
width = NULL,
height = NULL,
units = NULL,
dpi = NULL
)
plotObject |
Graphical object created from ggplot |
fileName |
name of exported file (with extension) |
name |
character defining the name of the file to be saved (without extension) |
format |
character defining the format of the file to be saved. |
width |
numeric values defining the width in |
height |
numeric values defining the height in |
units |
character defining the unit of the saving dimension |
dpi |
numeric value defining plot resolution (dots per inch) |
The file name of the exported plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.