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

Description Usage Arguments Value See Also Examples

View source: R/lseq.R

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")

audrina/pcclust documentation built on Oct. 10, 2018, 7:21 p.m.