which=outer与which=inner的差异

which=inner与which=figure[s:16]
<br />
attach(mtcars)<br />
opar <- par(no.readonly=TRUE)<br />
par(mar=c(3, 4, 0, 2)+1, oma=c(2, 2, 2, 2))<br />
plot(wt, mpg,<br />
xlab="Miles Per Gallon",<br />
ylab="Car Weight")<br />
box(which="figure", lty=2, col="red")<br />
box(which="inner", lty=2, col="green")<br />
box(which="outer", lty=2, col="yellow")<br />
box(which="plot", col="blue")<br />
mtext("plot", side=3, line=-0.5, col="red")<br />
mtext("figure/inner", side=3, line=-0.5, col="red", outer=TRUE)<br />
mtext("outer", side=3, line=1.3, col="red", outer=TRUE)<br />
par(opar)<br />
detach(mtcars)<br />
</p>