axis_labels {ggspectra} | R Documentation |
Default text for axis labels
Description
Texts used by default for axis labels in plots are recalled from character vectors returned by these functions. The aim is that their default values can be easily changed or translated to other languages. They contain only the text part, but not symbols or units of expression.
Usage
axis_labels()
axis_labels_uk()
axis_labels_uk_comma()
axis_labels_none()
Details
By default axis_labes()
contains a copy of
axis_labels_uk_comma()
. By assigning to this name a user function
that returns a named character vector using the same names as those
returned by these funtcions, it is possible to temporarily change
the default texts.
Value
A character vector
Examples
axis_labels()[["w.length"]] # ending in a comma
axis_labels <- axis_labels_uk
axis_labels()[["w.length"]] # no comma
[Package ggspectra version 0.3.12 Index]