pretty10exp {sfsmisc}R Documentation

Nice 10 ** k Label Expressions

Description

Produce nice a * 10^k expressions to be used instead of the scientific notation "a E<k>".

Usage

pretty10exp(x, drop.1 = FALSE)

Arguments

x numeric vector (e.g. axis tick locations)
drop.1 logical indicating if 1 * should be dropped from the resulting expressions.

Value

an expression of the same length as x, with elements of the form a %*% 10 ^ k.

Author(s)

Martin Maechler

See Also

axTexpr which builds on pretty10exp(); further axis, axTicks.

Examples

pretty10exp(-1:3 * 1000)
pretty10exp(-1:3 * 1000, drop.1 = TRUE)
pretty10exp(c(1,2,5,10,20,50,100,200) * 1e3)


[Package sfsmisc version 1.0-11 Index]