multiple.comma: multiple.comma

Description Usage Arguments Details Value Author(s) Examples

View source: R/formatters.r

Description

Order of Magnitude Formatter

Usage

1

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 comma.

Value

Character vector of comma formatted numbers.

Author(s)

Jared P. Lander

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require(scales)
vect <- c(1000, 1500, 23450, 21784, 875003780)
multiple.comma(vect)
multiple.comma(vect, multiple="k")
multiple.comma(vect, multiple="h")

require(ggplot2)
data(diamonds)
ggplot(diamonds, aes(x=x, y=y, color=price*100)) + geom_point() + 
scale_color_gradient2(labels=multiple.comma)

useful documentation built on June 7, 2017, 9:02 a.m.

Search within the useful package
Search all R packages, documentation and source code