| tinyAxis | R Documentation |
Internal function used for adding an axis to a tinyplot
call.
tinyAxis(
x = NULL,
...,
type = "standard",
labeller = NULL,
srt = NULL,
hang = FALSE
)
x |
an object which indicates the range over which an axis should be drawn |
... |
arguments to be passed to methods and perhaps then to
|
type |
the type of axis to be drawn; inherited from the |
labeller |
how the labels should be relabelled or reformatted. One of:
Note that an unnamed character vector of length greater than one is an
error, rather than a positional replacement of the labels. Such a vector
cannot be distinguished from a formatting keyword when |
srt |
numeric giving the tick label rotation in degrees
counter-clockwise, or |
hang |
logical. If |
tinyAxis provides a thin(ish) wrapper around
Axis, but with enhanced flexibility to (i) match
parameter combinations based on the axis type and plotting theme, (ii)
provide better support for date-time variables, and (iii) enable convenient
formatting of axis tick labels.
## Not run:
# plot without axes
tinyplot(0:10, axes = "n")
# add x-axis (labels only)
tinyplot:::tinyAxis(x = 0:10, side = 1, type = "l")
# add y-axis (with custom label formatting)
tinyplot:::tinyAxis(x = 0:10, side = 2, type = "s", labeller = "$")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.