logAxis | R Documentation |
Make a log-scale axis
logAxis(side = 1, base, disp = base, n = 5, style = "dec", ...)
side |
1=bottom, 2=left, 3=top, 4=right |
base |
What base is the log? Default is base e (natural log). |
disp |
By default, displays in same base as how constructed, but can display in other bases too |
n |
Number of tick marks |
style |
Either "dec" for decimals such as 0.125, or "pow" for powers such as 2^(-3) |
... |
Further arguments to |
x <- rexp(100)
y <- runif(100)
plot(log(x), y)
plot(log(x), y, xaxt='n', xlab='x')
logAxis()
plot(log(x), y, xaxt='n', xlab='x')
logAxis(style='pow', disp=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.