R6 class defining properties for saving a ggplot object
See also
Other PlotConfiguration classes:
AxisConfiguration,
BackgroundConfiguration,
BackgroundElement,
BoxWhiskerPlotConfiguration,
CumulativeTimeProfilePlotConfiguration,
DDIRatioPlotConfiguration,
HistogramPlotConfiguration,
LabelConfiguration,
LegendConfiguration,
LineElement,
ObsVsPredPlotConfiguration,
PKRatioPlotConfiguration,
PieChartPlotConfiguration,
PlotConfiguration,
PlotGridConfiguration,
QQPlotConfiguration,
ResVsPredPlotConfiguration,
ResVsTimePlotConfiguration,
TimeProfilePlotConfiguration,
TornadoPlotConfiguration,
XAxisConfiguration,
YAxisConfiguration
Public fields
namecharacter defining the name of the file to be saved (without extension)
pathPath of the directory to save plot to: path and filename are combined to create the fully qualified file name. Defaults to the working directory.
formatcharacter defining the format of the file to be saved
widthnumeric values defining the width in
unitsof the plot dimensions after savingheightnumeric values defining the height in
unitsof the plot dimensions after savingunitscharacter defining the unit of the saving dimension
dpi(dots per inch) numeric value defining plot resolution
Methods
Method new()
Create a new ExportConfiguration object
Usage
ExportConfiguration$new(
path = NULL,
name = NULL,
format = NULL,
width = NULL,
height = NULL,
units = NULL,
dpi = NULL
)Arguments
pathPath of the directory to save plot to: path and filename are combined to create the fully qualified file name. Defaults to the working directory.
namecharacter defining the name of the file to be saved (without extension)
formatcharacter defining the format of the file to be saved.
widthnumeric values defining the width in
unitsof the plot dimensions after savingheightnumeric values defining the height in
unitsof the plot dimensions after savingunitscharacter defining the unit of the saving dimension
dpinumeric value defining plot resolution (dots per inch)
Method print()
Print properties of export configuration
Method savePlot()
Save/Export a plot
Method convertPixels()
If unit is in pixels, convert all export dimensions to inches to keep compatibility with older versions of ggplot2