R6 class defining the configuration of a ggplot object
References
For examples, see: https://www.open-systems-pharmacology.org/TLF-Library/articles/plot-configuration.html
See also
Other PlotConfiguration classes:
AxisConfiguration,
BackgroundConfiguration,
BackgroundElement,
BoxWhiskerPlotConfiguration,
CumulativeTimeProfilePlotConfiguration,
DDIRatioPlotConfiguration,
ExportConfiguration,
HistogramPlotConfiguration,
LabelConfiguration,
LegendConfiguration,
LineElement,
ObsVsPredPlotConfiguration,
PKRatioPlotConfiguration,
PieChartPlotConfiguration,
PlotGridConfiguration,
QQPlotConfiguration,
ResVsPredPlotConfiguration,
ResVsTimePlotConfiguration,
TimeProfilePlotConfiguration,
TornadoPlotConfiguration,
XAxisConfiguration,
YAxisConfiguration
Public fields
exportR6 class
ExportConfigurationdefining properties for saving/exporting plotdefaultXScaleDefault xAxis scale value when creating a
PlotConfigurationobjectdefaultYScaleDefault yAxis scale value when creating a
PlotConfigurationobjectdefaultExpandDefault expand value when creating a
PlotConfigurationobjectdefaultSymmetricAxesDefault option setting symmetric xAxis and/or yAxis limits when creating a
PlotConfigurationobject
Active bindings
labelsLabelConfigurationobject defining properties of labelslegendLegendConfigurationobject defining properties of legendxAxisXAxisConfigurationobject defining properties of x-axisyAxisYAxisConfigurationobject defining properties of x-axisbackgroundBackgroundConfigurationobject defining properties of x-axislinesThemeAestheticSelectionsdefining properties of linesribbonsThemeAestheticSelectionsdefining properties of ribbonspointsThemeAestheticSelectionsdefining properties of pointserrorbarsThemeAestheticSelectionsdefining properties of error bars
Methods
Method new()
Create a new PlotConfiguration object
Usage
PlotConfiguration$new(
title = NULL,
subtitle = NULL,
xlabel = NULL,
ylabel = NULL,
caption = NULL,
legend = NULL,
legendTitle = NULL,
legendPosition = NULL,
xAxis = NULL,
xScale = NULL,
xValuesLimits = NULL,
xAxisLimits = NULL,
xLimits = lifecycle::deprecated(),
yAxis = NULL,
yScale = NULL,
yValuesLimits = NULL,
yAxisLimits = NULL,
yLimits = lifecycle::deprecated(),
background = NULL,
plotArea = NULL,
panelArea = NULL,
xGrid = NULL,
yGrid = NULL,
watermark = NULL,
lines = NULL,
points = NULL,
ribbons = NULL,
errorbars = NULL,
export = NULL,
name = NULL,
format = NULL,
width = NULL,
height = NULL,
units = NULL,
dpi = NULL,
data = NULL,
metaData = NULL,
dataMapping = NULL
)Arguments
titlecharacter or
Labelobject defining plot titlesubtitlecharacter or
Labelobject defining plot subtitlexlabelcharacter or
Labelobject defining plot xlabelylabelcharacter or
Labelobject defining plot ylabelcaptioncharacter or
Labelobject defining plot captionlegendLegendConfigurationobject defining legend propertieslegendTitlecharacter or
Labelobject defining legend titlelegendPositioncharacter defining legend position. Use Enum
LegendPositionsto get a list of available to legend positions.xAxisXAxisConfigurationobject defining x-axis propertiesxScalename of X-axis scale. Use enum
Scalingto access predefined scales.xValuesLimitsnumeric vector of length 2 defining x values limits
xAxisLimitsnumeric vector of length 2 defining x-axis limits
xLimitsyAxisYAxisConfigurationobject defining y-axis propertiesyScalename of y-axis scale. Use enum
Scalingto access predefined scales.yValuesLimitsnumeric vector of length 2 defining x values limits
yAxisLimitsnumeric vector of length 2 defining x-axis limits
yLimitsbackgroundBackgroundConfigurationobject defining background propertiesplotAreaBackgroundElementobject defining properties of plot areapanelAreaBackgroundElementobject defining properties of panel areaxGridLineElementobject defining properties of x-grid backgroundyGridLineElementobject defining properties of y-grid backgroundwatermarkcharacter or
Labelobject defining watermarklinesThemeAestheticSelectionsobject or list defining how lines are plottedpointsThemeAestheticSelectionsobject or list defining how points are plottedribbonsThemeAestheticSelectionsobject or list defining how ribbons are plottederrorbarsThemeAestheticSelectionsobject or list defining how errorbars are plottedexportR6 class
ExportConfigurationdefining properties for saving/exporting plotnamecharacter 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)
datadata.frame used by
.smartMappingmetaDatalist of information on
datadataMappingR6 class or subclass
XYDataMapping