pretty.log: Pretty sequence of logarithmic values

View source: R/pretty.log.R

pretty.logR Documentation

Pretty sequence of logarithmic values

Description

Returns a sequence of values on the logarithmic scale suitable for labelling on a logarithmic plot, i.e. the values are equally spaced on the log-scale.

Usage

## S3 method for class 'log'
pretty(x, base, n = 5, ...)

Arguments

x

A numeric vector.

base

Logarithmic base.

n

An integer giving the target number of intervals. Non-integer values are rounded down.

...

Further arguments passed on to pretty.

Examples

# Exponentail breakpoints across values from 0 to 10:
pretty.log(0:10)

# Generate exponential breakpoints for random numbers:
pretty.log(runif(100)*100)

TobieSurette/gulf.utils documentation built on Dec. 1, 2024, 6:01 a.m.