找回密码
 注册
查看: 1943|回复: 0

R语言:n2mfrow()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 19:00:34 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-5 02:08 , Processed in 0.035063 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表