logPretty: Pretty Axis

View source: R/logPretty.R

logPrettyR Documentation

Pretty Axis

Description

Constructs information for making a nicely formatted log-scale numeric axis. A support function for creating logarithmic axes.

Usage

logPretty(x, hard = FALSE, labels = "Auto", style = "Auto",
  extend.pct = 0, extend.range = NA)

Arguments

x

data defining the range to be plotted on the axis. Missing values are permitted, but ignored.

hard

logical, if TRUE, then use the minimum and maximum of x as the fixed range of the axis, otherwise find "nice" limits.

labels

either "Auto," which lets the function decide how many labels, the approximate number of labels, or the actual numeric values of the labels.

style

a character string indicating the style of the axis labels. Valid values are "numeric," which forces the labels to be displayed as numbers; "scientific," which forces the labels displayed using scientific notation; or "Auto" (the default), which disaplays labels as numbers but switches to scientific notation for large ranges. Only the first letter is required. Any invalid value will produce simply formatted labels.

extend.pct

extend the axis range by extend.pct. Only valid when hard is FALSE.

extend.range

required for naming consistency with other functions, not used.

Value

Information about the axis lables.

See Also

areaPlot, boxPlot, colorPlot, areaPlot, dotPlot, ecdfPlot, probPlot, qqPlot, scalePlot, splomPlot, timePlot, xyPlot


USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.