This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/box.html
box {base}R Documentation

Draw a Box around a Plot

Usage

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

Arguments

which

character, one of "plot", "figure", "inner" and "outer".

lty

line type of the box.

...

the graphical parameters bty and col can be specified as arguments to this function.

Value

This function is invoked for its side effect which is to 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.

See Also

rect for drawing of arbitrary rectangles.

Examples

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

[Package base version 0.60 ]