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
valuesLimits
numeric vector of length 2 defining limits of axis. A value of
NULL
is allowed and lead to defaultggplot2
behaviouraxisLimits
numeric vector of length 2 defining limits of axis. A value of
NULL
is allowed and lead to defaultggplot2
behaviourscale
name of axis scale from Enum
Scaling
A value ofNULL
is allowed and will lead to a default linear scaleticks
function or values defining where axis ticks are placed
minorTicks
function or values defining where axis minor ticks are placed
ticklabels
function or values defining the axis tick labels
font
Font
object defining the font of the ticklabelsexpand
logical 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
valuesLimits
numeric vector of value limits (data outside these limits is removed)
axisLimits
numeric vector of axis limits (data outside these limits is kept but not plotted)
limits
scale
character defining axis scale Use enum
Scaling
to access predefined scales.ticks
numeric vector or function defining where to position axis ticks
ticklabels
character vector or function defining what to print on axis ticks
minorTicks
numeric vector or function defining where to position minor axis ticks
font
Font
object defining the font of ticklabelsexpand
logical defining if data is expanded until axis. If
TRUE
, data is expanded until axis IfFALSE
, some space between data and axis is kept