plot.log {heR.Misc}R Documentation

Plot X-Y Data with Nice Log Axes

Description

Function to plot data with nice log base-10 axes and gridlines. Values less than 0 are converted to the value NA. Can set axis tics to exact multiples of ten on the plot, e.g., 0.1, 1, 10, if exact, or nearest 10$^i$ increment, e.g., 0.2 or 0.3 (for i = -1), otherwise.

Usage

plot.log(x, y, topx=NULL, ylim=range(y), xlim=range(x), exact10=TRUE,
         type="s", log="x", col="black", grid=TRUE, rect=FALSE,
         shade.col="tan",  ...)

Arguments

x x data values
y y data values
topx absolute maximum value
ylim y-axis limits
xlim x-axis limits
exact10 logical, whether plot to nearest multiple of 10 or not
type type of plotting symbol
log log axis specification, e.g., "x" or "y" or "xy"
col color for plotting symbols
grid logical, draw gridlines or not
rect logical, draw rectangles or not
shade.col color to shade rectangles
... additional graphical parameters

Author(s)

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


[Package heR.Misc version 0.0.4 Index]