minorAxis: Adds an axis with minor ticks to a plot
Description
Adds an axis with minor ticks to a plot, but with the
possibility to have no superposition of minor ticks on major ticks, allowing
to export a clean plot in vector format. It is based on the
minor.tick function in the Hmisc package.
an integer (here 1,2,3 or 4) specifying which side of the
plot the axis is to be drawn on. The axis is placed as follows: 1=below,
2=left, 3=above and, 4=right.
n
the number of intervals defined by the minor ticks
at.maj
the positions at which major tick-marks are to be drawn.
By default (when NULL) tickmark locations are computed, see the "Details"
part in the ?axis help page.
at.min
the positions at which minor tick-marks are to be drawn.
This parameter overrides n.
range
the range of the axis
tick.ratio
ratio of lengths of minor tick marks to major tick
marks. The length of major tick marks is retrieved from par("tcl") unless
specified otherwise.
labels.maj
this can either be a logical value specifying
whether (numerical) annotations are to be made at the major tickmarks, or a
character or expression vector of labels to be placed at the major
tickpoints.