AxisConfiguration | R Documentation |
R6 class defining the configuration of axis
valuesLimits
numeric vector of length 2 defining limits of axis.
A value of NULL
is allowed and lead to default ggplot2
behaviour
axisLimits
numeric vector of length 2 defining limits of axis.
A value of NULL
is allowed and lead to default ggplot2
behaviour
scale
name of axis scale from Enum Scaling
A value of NULL
is allowed and will lead to a default linear scale
ticks
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 ticklabels
expand
logical defining if data is expanded until axis.
If TRUE
, data is expanded until axis
If FALSE
, some space between data and axis is kept
new()
Create a new AxisConfiguration
object
AxisConfiguration$new( valuesLimits = NULL, axisLimits = NULL, limits = lifecycle::deprecated(), scale = Scaling$lin, ticks = NULL, ticklabels = NULL, minorTicks = NULL, font = NULL, expand = FALSE )
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 ticklabels
expand
logical defining if data is expanded until axis.
If TRUE
, data is expanded until axis
If FALSE
, some space between data and axis is kept
A new AxisConfiguration
object
ggplotScale()
Get the ggplot2
actual trans
name of scale
AxisConfiguration$ggplotScale()
A character included in ggplot2
available trans
names
ggplotExpansion()
Get the ggplot2
actual function for expansion
AxisConfiguration$ggplotExpansion()
A ggplot2
function
prettyTicks()
Get tick values for pretty default log plots
AxisConfiguration$prettyTicks()
User defined tick values or tlf default ticks
prettyMinorTicks()
Get tick values for pretty default log plots
AxisConfiguration$prettyMinorTicks()
User defined tick values or tlf default ticks
prettyTickLabels()
Get tick labels for pretty default log plots
AxisConfiguration$prettyTickLabels()
User defined tick labels or tlf default ticklabels
clone()
The objects of this class are cloneable with this method.
AxisConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.