Constructs information for making a nicely formatted log-scale numeric axis. A support function for creating logarithmic axes.
logPretty(
x,
hard = FALSE,
labels = "Auto",
style = "Auto",
extend.pct = 0,
extend.range = NA
)
data defining the range to be plotted on the axis. Missing values are permitted, but ignored.
logical, if TRUE
, then use the minimum and maximum of
x
as the fixed range of the axis, otherwise find "nice" limits.
either "Auto," which lets the function decide how many labels, the approximate number of labels, or the actual numeric values of the labels.
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 the axis range by extend.pct
. Only valid
when hard
is FALSE.
required for naming consistency with other functions, not used.
Information about the axis lables.
From smwrGraphs.