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
export
R6 class
ExportConfiguration
defining properties for saving/exporting plotdefaultXScale
Default xAxis scale value when creating a
PlotConfiguration
objectdefaultYScale
Default yAxis scale value when creating a
PlotConfiguration
objectdefaultExpand
Default expand value when creating a
PlotConfiguration
objectdefaultSymmetricAxes
Default option setting symmetric xAxis and/or yAxis limits when creating a
PlotConfiguration
object
Active bindings
labels
LabelConfiguration
object defining properties of labelslegend
LegendConfiguration
object defining properties of legendxAxis
XAxisConfiguration
object defining properties of x-axisyAxis
YAxisConfiguration
object defining properties of x-axisbackground
BackgroundConfiguration
object defining properties of x-axislines
ThemeAestheticSelections
defining properties of linesribbons
ThemeAestheticSelections
defining properties of ribbonspoints
ThemeAestheticSelections
defining properties of pointserrorbars
ThemeAestheticSelections
defining 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
title
character or
Label
object defining plot titlesubtitle
character or
Label
object defining plot subtitlexlabel
character or
Label
object defining plot xlabelylabel
character or
Label
object defining plot ylabelcaption
character or
Label
object defining plot captionlegend
LegendConfiguration
object defining legend propertieslegendTitle
character or
Label
object defining legend titlelegendPosition
character defining legend position. Use Enum
LegendPositions
to get a list of available to legend positions.xAxis
XAxisConfiguration
object defining x-axis propertiesxScale
name of X-axis scale. Use enum
Scaling
to access predefined scales.xValuesLimits
numeric vector of length 2 defining x values limits
xAxisLimits
numeric vector of length 2 defining x-axis limits
xLimits
yAxis
YAxisConfiguration
object defining y-axis propertiesyScale
name of y-axis scale. Use enum
Scaling
to access predefined scales.yValuesLimits
numeric vector of length 2 defining x values limits
yAxisLimits
numeric vector of length 2 defining x-axis limits
yLimits
background
BackgroundConfiguration
object defining background propertiesplotArea
BackgroundElement
object defining properties of plot areapanelArea
BackgroundElement
object defining properties of panel areaxGrid
LineElement
object defining properties of x-grid backgroundyGrid
LineElement
object defining properties of y-grid backgroundwatermark
character or
Label
object defining watermarklines
ThemeAestheticSelections
object or list defining how lines are plottedpoints
ThemeAestheticSelections
object or list defining how points are plottedribbons
ThemeAestheticSelections
object or list defining how ribbons are plottederrorbars
ThemeAestheticSelections
object or list defining how errorbars are plottedexport
R6 class
ExportConfiguration
defining properties for saving/exporting plotname
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)
data
data.frame used by
.smartMapping
metaData
list of information on
data
dataMapping
R6 class or subclass
XYDataMapping