Axis                package:graphics                R Documentation

_G_e_n_e_r_i_c _f_u_n_c_t_i_o_n _t_o _a_d_d _a_n _A_x_i_s _t_o _a _P_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     Generic function to add a suitable axis to the current plot.

_U_s_a_g_e:

     Axis(x = NULL, at = NULL, ..., side, labels = NULL)

_A_r_g_u_m_e_n_t_s:

       x: an object which indicates the range over which an axis should
          be drawn

      at: the points at which tick-marks are to be drawn.

    side: 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.

  labels: 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
          vector, 'at' should be supplied and they should be the same
          length.

     ...: Arguments to be passed to methods and perhaps then to 'axis'.

_D_e_t_a_i_l_s:

     This is a generic function.  It works in a slightly non-standard
     way: if 'x' is supplied and non-NULL it dispatches on 'x',
     otherwise if 'at' is supplied and non-NULL it dispatches on 'at',
     and the default action is to call 'axis', omitting argument 'x'.

     The idea is that for plots for which either or both of the axes
     are numerical but with a special interpretation, the standard
     plotting functions (including 'boxplot', 'contour', 'coplot',
     'filled.contour', 'pairs', 'plot.default', 'rug' and 'stripchart')
     will set up user coordinates and 'Axis' will be called to label
     them appropriately.

     There are '"Date"', '"POSIXct"' and '"POSIXlt"' methods which can
     pass an argument 'format' onto the appropriate 'axis' method (see
     'axis.POSIXct').

_V_a_l_u_e:

     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.

_S_e_e _A_l_s_o:

     'axis'.

