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 / legend < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.6 KB  |  58 lines

  1.     
  2.     _A_d_d _L_e_g_e_n_d_s _t_o _P_l_o_t_s
  3.     
  4.          legend(x, y, legend, fill=, col="black",
  5.                  lty=, pch=, bty="o", bg=par("bg"),
  6.                  xjust=0, yjust=1)
  7.     
  8.     _A_r_g_u_m_e_n_t_s:
  9.     
  10.                x : the x location of the legend.
  11.     
  12.                y : the y location of the legend.
  13.     
  14.           legend : a vector of text values to appear in the
  15.                    legend.
  16.     
  17.             fill : if specied, this argument will cause boxes
  18.                    filled with the specified colors to appear
  19.                    beside the legend text.
  20.     
  21.              col : the color of points or lines appearing in the
  22.                    legend.
  23.     
  24.              lty : the line types for lines appearing in the
  25.                    legend.
  26.     
  27.              pch : the plotting symbols appearing in the legend.
  28.     
  29.              bty : the type of box to be drawn around the
  30.                    legend.
  31.     
  32.               bg : the background color for the legend box.
  33.     
  34.            xjust : how the legend is to be justified relative to
  35.                    the legend x location.  A value of 0 means
  36.                    left justified, 0.5 means centered and 1
  37.                    means right justified.
  38.     
  39.            yjust : how the legend is to be justified relative to
  40.                    the legend y location.  A value of 0 means
  41.                    top justified, 0.5 means centered and 1 means
  42.                    bottom justified.
  43.     
  44.     _D_e_s_c_r_i_p_t_i_o_n:
  45.     
  46.          This function can be used to add legends to plots.
  47.          Note that a call to the function locator can be used in
  48.          place of the x and y arguments.
  49.     
  50.     _S_e_e _A_l_s_o:
  51.     
  52.          plot, barplot.
  53.     
  54.     _E_x_a_m_p_l_e_s:
  55.     
  56.          # There are no examples yet.
  57.     
  58.