Learn R Programming

NMcalc (version 0.0.4)

seqlog: Log-scale equidistant sequences

Description

Useful for generating sequences to be plotted on log scale. This is really simple - seq is run on from and to after log transformation, then the exponential is reported.

Usage

seqlog(from, to, length.out)

Value

A numeric vector.

Arguments

from

start of sequence

to

end of sequence

length.out

length of sequence

Examples

Run this code
df <- data.frame(x=seqlog(1,100,100))
df <- transform(df, y=x/(10+x))
if (FALSE) {
library(ggplot2)
## the points are equidistant on the log x scale
ggplot(df,aes(x,y))+geom_point()+scale_x_log10()
}

Run the code above in your browser using DataLab