

box {base}                                   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'.

_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 = F)
     axis(1, labels = letters[1:7])
     box(lty='137', col = 'red')

