ExportConfiguration | R Documentation |
R6 class defining properties for saving a ggplot
object
tlf::ExportConfiguration
-> ExportConfiguration
name
character defining the name of the file to be saved (without extension)
path
Path of the directory to save plot to: path and filename are combined to create the fully qualified file name. Defaults to the working directory.
format
character defining the format of the file to be saved
width
numeric values defining the width in units
of the plot dimensions after saving
height
numeric values defining the height in units
of the plot dimensions after saving.
Only used if heightPerRow
is NULL
.
units
character defining the unit of the saving dimension
dpi
(dots per inch) numeric value defining plot resolution
name
character defining the name of the file to be saved (without extension)
path
Path of the directory to save plot to: path and filename are combined to create the fully qualified file name. Defaults to the working directory.
format
character defining the format of the file to be saved
width
numeric values defining the width in units
of the plot dimensions after saving
height
numeric values defining the height in units
of the plot dimensions after saving.
Only used if heightPerRow
is NULL
.
units
character defining the unit of the saving dimension
dpi
(dots per inch) numeric value defining plot resolution
heightPerRow
The height of the plot dimensions for a row in a multi
panel plot. The final height of the figure will be 'heightPerRow' times
the number of rows.
If NULL
(default), value used in height
is used. If not NULL
, this
value always overrides the height
property.
savePlot()
Save/Export a plot
ExportConfiguration$savePlot(plotObject, fileName = NULL)
plotObject
A ggplot
object
fileName
character file name of the exported plot
The file name of the exported plot
clone()
The objects of this class are cloneable with this method.
ExportConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.