

axis {base}                                  R Documentation

_A_d_d _a_n _A_x_i_s _t_o _a _P_l_o_t

_U_s_a_g_e_:

     axis(side, at, labels=TRUE, ...)

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

    side: an integer specifying which side of the plot the
          axis is to be drawn on.

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

  labels: this can either be a logical value specifying
          whether (numerical) annotations are to be made at
          the tickmarks, or a vector of character strings to
          be placed at the tickpoints.

     ...: graphical parameters may also be passed as argu-
          ments to this function.

_V_a_l_u_e_:

     This function is invoked for its side effect, which is
     to add an axis to an already existing plot.  The axis
     is placed as follows: 1=below, 2=left, 3=above and
     4=right.

_E_x_a_m_p_l_e_s_:

     plot(1:4, rnorm(4), axes=FALSE)
     axis(1, 1:4, LETTERS[1:4])
     axis(2)
     box() #- to make it look "as usual"

     plot(1:7, rnorm(7), type = 's', xaxt='n', col = 'red')
     axis(1, 1:7, LETTERS[1:7], col.axis = 'blue')

