box                 package:graphics                 R Documentation

_D_r_a_w _a _B_o_x _a_r_o_u_n_d _a _P_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     This function draws a box around the current plot in the given
     color and linetype.  The 'bty' parameter determines the type of
     box drawn.  See 'par' for details.

_U_s_a_g_e:

     box(which="plot", lty="solid", ...)

_A_r_g_u_m_e_n_t_s:

   which: character, one of '"plot"', '"figure"', '"inner"' and
          '"outer"'.

     lty: line type of the box.

     ...: further graphical parameters, such as 'bty', 'col', or 'lwd',
          see 'par'.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

     'rect' for drawing of arbitrary rectangles.

_E_x_a_m_p_l_e_s:

     plot(1:7,abs(rnorm(7)), type='h', axes = FALSE)
     axis(1, labels = letters[1:7])
     box(lty='1373', col = 'red')

