

   box {base}                                   R Documentation

   DDrraaww aa BBooxx aarroouunndd aa PPlloott

   DDeessccrriippttiioon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Ussaaggee::

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

   AArrgguummeenntts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Seeee AAllssoo::

        `rect' for drawing of arbitrary rectangles.

   EExxaammpplleess::

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

