prettylog: Pretty Breakpoints on Log Scale

Description Usage Arguments Value Examples

View source: R/prettylog.R

Description

Compute a sequence of "round" values which cover the range of x on the log scale.

Usage

1
prettylog(x, lead = c(1, 5), extra = 5)

Arguments

x

A numeric vector.

lead

An integer vector giving the desired lead digits of pretty values on the log scale, default c(1, 5).

extra

An integer scalar giving the desired number of additional non-log scale values to include, default 5.

Value

A numeric vector of pretty values covering the range of x on the log scale.

Examples

1
2
3
4
5
vals <- rlnorm(100, 6)
summary(vals)
prettylog(vals, 1, 0)
prettylog(vals, 1)
prettylog(vals, c(1, 2, 5))

JVAdams/LW1949 documentation built on May 7, 2019, 10:14 a.m.