tinyAxis | R Documentation |
Internal function used for adding an axis to a tinyplot
call.
tinyAxis(x = NULL, ..., type = "standard", labeller = NULL)
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 |
a formatting function to be applied to |
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.