R6 class defining the configuration of axis
See also
Other PlotConfiguration classes:
BackgroundConfiguration,
BackgroundElement,
BoxWhiskerPlotConfiguration,
CumulativeTimeProfilePlotConfiguration,
DDIRatioPlotConfiguration,
ExportConfiguration,
HistogramPlotConfiguration,
LabelConfiguration,
LegendConfiguration,
LineElement,
ObsVsPredPlotConfiguration,
PKRatioPlotConfiguration,
PieChartPlotConfiguration,
PlotConfiguration,
PlotGridConfiguration,
QQPlotConfiguration,
ResVsPredPlotConfiguration,
ResVsTimePlotConfiguration,
TimeProfilePlotConfiguration,
TornadoPlotConfiguration,
XAxisConfiguration,
YAxisConfiguration
Active bindings
valuesLimitsnumeric vector of length 2 defining limits of axis. A value of
NULLis allowed and lead to defaultggplot2behaviouraxisLimitsnumeric vector of length 2 defining limits of axis. A value of
NULLis allowed and lead to defaultggplot2behaviourscalename of axis scale from Enum
ScalingA value ofNULLis allowed and will lead to a default linear scaleticksfunction or values defining where axis ticks are placed
minorTicksfunction or values defining where axis minor ticks are placed
ticklabelsfunction or values defining the axis tick labels
fontFontobject defining the font of the ticklabelsexpandlogical defining if data is expanded until axis. If
TRUE, data is expanded until axis IfFALSE, some space between data and axis is kept
Methods
Method new()
Create a new AxisConfiguration object
Usage
AxisConfiguration$new(
valuesLimits = NULL,
axisLimits = NULL,
limits = lifecycle::deprecated(),
scale = Scaling$lin,
ticks = NULL,
ticklabels = NULL,
minorTicks = NULL,
font = NULL,
expand = FALSE
)Arguments
valuesLimitsnumeric vector of value limits (data outside these limits is removed)
axisLimitsnumeric vector of axis limits (data outside these limits is kept but not plotted)
limitsscalecharacter defining axis scale Use enum
Scalingto access predefined scales.ticksnumeric vector or function defining where to position axis ticks
ticklabelscharacter vector or function defining what to print on axis ticks
minorTicksnumeric vector or function defining where to position minor axis ticks
fontFontobject defining the font of ticklabelsexpandlogical defining if data is expanded until axis. If
TRUE, data is expanded until axis IfFALSE, some space between data and axis is kept