Learn R Programming

geotech (version 1.0)

plotBackground: Background Functions for Plotting

Description

These internal functions are called by the package's plotting functions to create logarithmic axes.

Usage

logAxis(x = NA, y = NA, gridX = FALSE, gridY = FALSE) logAxis.plot(data, type, gridlines)

Arguments

x
data for x-axis
y
data for y-axis
gridX
TRUE if gridlines in the vertical directions are to be drawn; FALSE otherwise (default = FALSE).
gridY
TRUE if gridlines in the horizontal directions are to be drawn; FALSE otherwise (default = FALSE).
data
vector of data values for plot
type
"x" for horizontal axis; "y" for vertical axis
gridlines
TRUE for vertical gridlines across plot, FALSE otherwise (default = FALSE).

Value

they are simply used to draw logarithmic axes on existing plots.

Details

  • logAxis is a wrapper function for performing calculations
  • logAxis.plot is the actual plotting function (which is called one axis at a time).