logAxis: Log axes

Description Usage Arguments Details Author(s) See Also Examples

View source: R/logAxis.R

Description

Add good looking log scale axes to a plot

Usage

1
logAxis(side, expLab = FALSE, minor = TRUE, ...)

Arguments

side

the side on which to add an axis (following axis, but taking vectors of length grater than 1, e.g. 1:2)

expLab

logical, should axis labels be in exponential form (e.g. 10^1; expLab = TRUE)

minor

logical, should minor tick marks be added or in standard form (expLab = FALSE, the default)

...

arguments passed to axis

Details

Powers of 10 receive a long tick mark and an axis label while integers that are not powers of 10 receive a short tick and no label

Author(s)

Andy Rominger <ajrominger@gmail.com>

See Also

axis, plot

Examples

1
2
plot(1, xlim=c(1, 100), xaxt='n')
logAxis(1)

ajrominger/socorro documentation built on Jan. 3, 2020, 6:25 a.m.