format_si: format_si

Description Usage Arguments Details Value Author(s) Source Examples

View source: R/format_si.R

Description

format_si: Format a vector of numeric values according to the International System of Units.

Usage

1

Arguments

...

additional arguments to format()

Details

Format a vector of numeric values according to the International System of Units. http://en.wikipedia.org/wiki/SI_prefix

Based on code by Ben Tupper (https://stat.ethz.ch/pipermail/r-help/2012-January/299804.html)

Value

A function to format a vector of strings using SI prefix notation

Author(s)

Stefan Möding

Source

http://www.moeding.net/archives/32-Metric-prefixes-for-ggplot2-scales.html

Examples

1
ggplot() + ... + scale_y_continuous(labels=format_si())

mbertalan/iPsychCNV documentation built on June 30, 2017, 2:02 a.m.