multiple.identity: multiple.identity

View source: R/formatters.r

multiple.identityR Documentation

multiple.identity

Description

Order of Magnitude Formatter

Usage

multiple.identity(x, ...)

Arguments

x

Vector of numbers to be formatted.

...

Further arguments to be passed on to link{multiple}

Details

Simply a wrapper for multiple that prespecifies the extra identity.

Value

Character vector of formatted numbers.

Author(s)

Jared P. Lander

Examples


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)


jaredlander/useful documentation built on Nov. 4, 2023, 10:56 a.m.