View source: R/pretty_axis_support.R
pretty_labels | R Documentation |
This function defines pretty axis labels from an object.
pretty_labels(
x,
at,
n = NULL,
pi_notation_args = NULL,
sci_notation_args = list()
)
x |
An object, such as a numeric vector. |
at |
A numeric vector of axis positions. |
n |
(optional) An integer which defines the number of decimal places for numeric axes. This is passed to |
pi_notation_args |
A named list of arguments passed to |
sci_notation_args |
A named list of arguments passed to |
For factors, factor levels at positions specified by at
are taken as labels. For numbers, add_lagging_point_zero
and sci_notation
are implemented as necessary to define pretty labels.
A vector of labels, of the same length as axis tick marks (at
).
Edward Lavender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.