Description Usage Arguments Value Author(s) See Also Examples
Convert and simplify axis labels that are in US dollars or percentages.
1 2 | AxisInDollars(side, at, include.symbol = TRUE, simplify = TRUE, ...)
AxisInPercent(side, at, include.symbol = TRUE, simplify = TRUE, ...)
|
side |
An integer specifying which side of the plot the axis is to be drawn on. The axis is placed as follows: 1=below, 2=left, 3=above and 4=right. |
at |
The points at which tick-marks are to be drawn. |
include.symbol |
Whether to include a dollar or percent symbol, where the symbol chosen depends on the function. |
simplify |
For dollars, simplify the amount to use abbreviations of
|
... |
Arguments passed to |
The numeric locations on the axis scale at which tick marks were drawn when the plot was first drawn.
David Diez
1 2 3 | x <- sample(50e6, 100)
hist(x, axes = FALSE)
AxisInDollars(1, pretty(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.