seqlog | R Documentation |
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.
seqlog(from, to, length.out)
from |
start of sequence |
to |
end of sequence |
length.out |
length of sequence |
A numeric vector.
df <- data.frame(x=seqlog(1,100,100))
df <- transform(df, y=x/(10+x))
## Not run:
library(ggplot2)
## the points are equidistant on the log x scale
ggplot(df,aes(x,y))+geom_point()+scale_x_log10()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.