Description Usage Arguments Details Value Author(s) Examples
Order of Magnitude Formatter
1 | multiple.identity(x, ...)
|
x |
Vector of numbers to be formatted. |
... |
Further arguments to be passed on to
|
Simply a wrapper for multiple that prespecifies the extra identity.
Character vector of formatted numbers.
Jared P. Lander
1 2 3 4 5 6 7 8 | vect <- c(1000, 1500, 23450, 21784, 875003780)
multiple.identity(vect)
multiple.identity(vect, multiple="k")
multiple.identity(vect, multiple="h")
require(ggplot2)
data(diamonds)
ggplot(diamonds, aes(x=x, y=y, color=price*100)) + geom_point() + scale_color_gradient2(labels=multiple.identity)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.