plmframes | R Documentation |
This is a short-cut to set some graphical parameters
plmframes(mfrow = NULL, mfcol = NULL, mft = NULL, byrow = TRUE, reduce = FALSE,
oma = NULL, mar = NULL, mgp = NULL, plargs = NULL, ploptions = NULL, ...)
mfrow, mfcol |
number of rows and columns of panels. The default is 1 for both, which will reset the subdivision of the plotting page. |
mft |
total number of panels, to be split into |
byrow |
if TRUE, the panels will be generated by rows, otherwise, by columns |
reduce |
logical: If the number of rows or columns asked for by
|
mar |
plot margins.
Any |
oma |
outer plot margins.
Any |
mgp |
margin-pars passed to |
plargs, ploptions |
result of calling |
... |
further graphical parameters passed to
|
The function calls par
. Its purpose is to simplify a call like
par(mfrow=c(3,4))
to plmframes(3,4)
and to set some
defaults differently from par
.
A named list
containing the old values of the parameters,
as for par
.
Werner A. Stahel, ETH Zurich
par
plmframes(2,3)
plmframes(mft=15) ## will split the plotting area into >= 15 panels,
plmframes() ## reset to 1 panel
t.plo <- ploptions(mframesmax=9, assign=FALSE)
t.mf <- plmframes(4,4, reduce=TRUE, ploptions=t.plo)
par("mfg")
t.mf[c("mfigsug","npages")]
## $mfigsug
## [1] 2 4
## $npages
## [1] 2 1
## if the device area was higher than wide,
## the result is the other way 'round
t.mft <- plmframes(mft=12, reduce=TRUE, ploptions=t.plo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.