format_si: format_si

Description Usage Arguments Details Value Author(s) Source Examples

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 May 22, 2019, 12:19 p.m.