n2mfrow(grDevices)
n2mfrow()所属R语言包:grDevices
Compute Default mfrow From Number of Plots
从图数量计算默认mfrow
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Easy setup for plotting multiple figures (in a rectangular layout) on one page. This computes a sensible default for par(mfrow).
易于安装在一个页面上绘制多个数字(在一个长方形的布局)。计算par(mfrow)的合理的默认。
用法----------Usage----------
n2mfrow(nr.plots)
参数----------Arguments----------
参数:nr.plots
integer; the number of plot figures you'll want to draw.
整数;图人物,你想画。
值----------Value----------
A length two integer vector nr, nc giving the number of rows and columns, fulfilling nr >= nc >= 1 and nr * nc >= nr.plots.
长整数向量:nr, nc行和列的数目,履行nr >= nc >= 1和nr * nc >= nr.plots。
作者(S)----------Author(s)----------
Martin Maechler
参见----------See Also----------
par, layout.
par,layout。
举例----------Examples----------
require(graphics)
n2mfrow(8) # 3 x 3[3×3]
n <- 5 ; x <- seq(-2,2, len=51)
## suppose now that 'n' is not known {inside function}[#假设现在不知道N{内部功能}]
op <- par(mfrow = n2mfrow(n))
for (j in 1:n)
plot(x, x^j, main = substitute(x^ exp, list(exp = j)), type = "l",
col = "blue")
sapply(1:10, n2mfrow)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|