Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nice

Nice breakpoints


Description

The function calls pretty for linear scale. For a log-scale nice are computed using a set of specified number in a decade.

Usage

nice(x, log = F, lpos = c(1, 2, 5), ...)

Arguments

x

Numerical vector to

log

Logical. Is the scale logartimic?

lpos

Numeric. Numbers between 1 and 10 giving the desired breakpoints in this interval.

...

Arguments passed on to pretty if log=FALSE

Value

A vector of breakpoints.

Author(s)

See Also

pretty

Examples

nice( exp( rnorm( 100 ) ), log=TRUE )

Epi

Statistical Analysis in Epidemiology

v2.44
GPL-2
Authors
Bendix Carstensen [aut, cre], Martyn Plummer [aut], Esa Laara [ctb], Michael Hills [ctb]
Initial release
2021-02-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.