lseq: 'lseq' output a sequence of logarithmically spaced numbers.

Description Usage Arguments Value See Also Examples

Description

lseq works like seq in that it returns a vector of numbers with from as the first element, to as the last elelemnt, and length.out as the length of the vector, but the values are logarithmically spaced.

Usage

1
lseq(from, to, length.out = 10)

Arguments

from

first number in the sequence.

to

last number in the sequence.

length.out

length of the sequence, a positive integer > 1. Default is 10.

Value

A numeric vector.

See Also

seq

Examples

1
2
plot(c(0.1,10), c(0,1))
abline(v = lseq(0.1, 10, length.out = 20), col="#3366FF66")

hyginn/tintage documentation built on May 15, 2019, 1:16 p.m.