home *** CD-ROM | disk | FTP | other *** search
-
- _A_d_d _L_e_g_e_n_d_s _t_o _P_l_o_t_s
-
- legend(x, y, legend, fill=, col="black",
- lty=, pch=, bty="o", bg=par("bg"),
- xjust=0, yjust=1)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : the x location of the legend.
-
- y : the y location of the legend.
-
- legend : a vector of text values to appear in the
- legend.
-
- fill : if specied, this argument will cause boxes
- filled with the specified colors to appear
- beside the legend text.
-
- col : the color of points or lines appearing in the
- legend.
-
- lty : the line types for lines appearing in the
- legend.
-
- pch : the plotting symbols appearing in the legend.
-
- bty : the type of box to be drawn around the
- legend.
-
- bg : the background color for the legend box.
-
- xjust : how the legend is to be justified relative to
- the legend x location. A value of 0 means
- left justified, 0.5 means centered and 1
- means right justified.
-
- yjust : how the legend is to be justified relative to
- the legend y location. A value of 0 means
- top justified, 0.5 means centered and 1 means
- bottom justified.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- This function can be used to add legends to plots.
- Note that a call to the function locator can be used in
- place of the x and y arguments.
-
- _S_e_e _A_l_s_o:
-
- plot, barplot.
-
- _E_x_a_m_p_l_e_s:
-
- # There are no examples yet.
-
-