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
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 savingheight
numeric values defining the height in
units
of the plot dimensions after savingunits
character 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
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.
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
units
of the plot dimensions after savingheight
numeric values defining the height in
units
of the plot dimensions after savingunits
character defining the unit of the saving dimension
dpi
numeric 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