lseq: Generate Sequences, Equidistant on Log Scale

View source: R/misc-goodies.R

lseqR Documentation

Generate Sequences, Equidistant on Log Scale

Description

Generate sequences which are equidistant on a log-scale.

Usage

lseq(from, to, length)

Arguments

from

starting value of sequence.

to

end value of the sequence.

length

desired length of the sequence.

Value

a numeric vector of length length.

See Also

seq.

Examples

(x <- lseq(1, 990, length= 21))
plot(x, x^4,    type = "b", col = 2, log = "xy")
if(with(R.version, major >= 2 && minor >= 1))
plot(x, exp(x), type = "b", col = 2, log = "xy")

mmaechler/sfsmisc documentation built on Feb. 28, 2024, 4:18 a.m.