Generic function to add a suitable axis to the current plot.
Axis(x = NULL, at = NULL, ..., side, labels = NULL)
an object which indicates the range over which an axis should be drawn
the points at which tick-marks are to be drawn.
an integer 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.
this can either be a logical value specifying whether
(numerical) annotations are to be made at the tickmarks, or a
character or expression vector of labels to be placed at the
tickpoints. If this is specified as a character or expression
arguments to be passed to methods and perhaps then to
This is a generic function. It works in a slightly non-standard way:
x is supplied and non-NULL it dispatches on
at is supplied and non-NULL it dispatches on
and the default action is to call
axis, omitting argument
The idea is that for plots for which either or both of the axes are
numerical but with a special interpretation, the standard plotting
stripchart) will set up user coordinates and
will be called to label them appropriately.
"POSIXt" methods which can pass an
format on to the appropriate
axis method (see
The numeric locations on the axis scale at which tick marks were drawn when the plot was first drawn (see ‘Details’).
This function is usually invoked for its side effect, which is to add an axis to an already existing plot.
axis (which is eventually called from all
methods) in package graphics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.