box {base} | R Documentation |
box(which="plot", lty="solid", ...)
which |
character, one of |
lty |
line type of the box. |
... |
the graphical parameters |
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.
rect
for drawing of arbitrary rectangles.
plot(1:7,abs(rnorm(7)), type='h', axes = F)
axis(1, labels = letters[1:7])
box(lty='137', col = 'red')