log.axis {heR.Misc}R Documentation

Add a log-10 Axis to a Plot

Description

Function to add a nice log base-10 axis to a plot, with major/minor tics and optional gridlines. See log.tics for details on generating tic positions.

Usage

log.axis(side, limits, exp.format=TRUE,
         grid=TRUE, grid.lty="solid", grid.col="lightgray", grid.lwd=1,
         major=TRUE, minor=TRUE, label.minor=FALSE,
         minor.cex=0.75, major.cex=1, ...)

Arguments

side Side of plot where axis will be added: 1,2,3,4
limits Numeric limits over which tics will be added
exp.format whether or not labels should be in exponential format
grid logical, draw gridlines or not
grid.lty line type for gridlines
grid.col color for gridlines
grid.lwd line width for gridlines
major logical, draw major tics or not
minor logical, draw minor tics or not
label.minor logical, include minor tic labels or not
minor.cex magnification for minor tic labels
major.cex magnification for major tic labels
... More arguments to pass to the axis function

Details

You can add log-axis tics and labels to the 1. Bottom, 2. Left, 3. Top, or 4. Right side of the plot.

This function will add tics/labels in units of 10$^i$ as major tics, where i = ..., -2, -1, 0, 1, 2, ..., e.g., 0.1, 1, 10

Minor tics will be added as integer multiples of the major tics, e.g., as 0.2, 0.3, 0.4, ..., 0.9, for tics betwen 0.1 and 1

Value

Invoked for the effect of adding tics and tic labels to an existing plot.

Author(s)

Neil E. Klepeis
neil AT exposurescience DOT org
http://klepeis.net


[Package heR.Misc version 0.0.4 Index]