home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / axis < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.2 KB  |  40 lines

  1.     
  2.     _A_d_d _a_n _A_x_i_s _t_o _a _P_l_o_t
  3.     
  4.          axis(which, at, labels=TRUE, ...)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.            which : an integer specifying which side of the plot
  9.                    the axis is to be drawn on.
  10.     
  11.               at : the points at which tick-marks are to be
  12.                    drawn.
  13.     
  14.           labels : this can either be a logical value specifying
  15.                    whether (numerical) annotations are to be
  16.                    made at the tickmarks, or a vector of charac-
  17.                    ter strings to be placed at the tickpoints.
  18.     
  19.              ... : graphical parameters may also be passed as
  20.                    aruments to this function.
  21.     
  22.     _V_a_l_u_e:
  23.     
  24.          This function is invoked for its side effect, which is
  25.          to add an axis to an already existing plot.  The axis
  26.          is placed as follows: 1=below, 2=left, 3=above and
  27.          4=right.
  28.     
  29.     _E_x_a_m_p_l_e_s:
  30.     
  31.          plot(1:4, rnorm(4), axes=FALSE)
  32.          axis(1, 1:4, LETTERS[1:4])
  33.          axis(2)
  34.          box() #- to make it look "as usual"
  35.     
  36.          ##-- This still fails in older versions of R :
  37.          plot(1:7, rnorm(7), type = 's', xaxt='n', col = 'red')
  38.          axis(1, 1:7, LETTERS[1:7], col.axis = 'blue')
  39.     
  40.