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

R语言 sfsmisc包 mult.fig()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:38:25 | 显示全部楼层 |阅读模式
mult.fig(sfsmisc)
mult.fig()所属R语言包:sfsmisc

                                        Plot Setup for MULTiple FIGures, incl. Main Title
                                         绘制多个图形,包括设置。主标题

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Easy Setup for plotting multiple figures (in a rectangular layout) on one page.  It allows to specify a main title and uses smart defaults for several par calls.
简易安装在一个页面上绘制多个数字(在一个长方形的布局)。它允许指定一个主标题,并采用了智能的默认值几个par调用。


用法----------Usage----------


mult.fig(nr.plots, mfrow, mfcol,
         marP = rep(0, 4), mgp = c(1.5, 0.6, 0),
         mar = marP + 0.1 + c(4,4,2,1), oma = c(0,0, tit.wid, 0),
         main = NULL,
         tit.wid = if (is.null(main)) 0 else 1 + 1.5*cex.main,
         quiet = .Device == "postscript",
         cex.main = par("cex.main"), line.main = cex.main - 1/2,
         col.main = par("col.main"), font.main = par("font.main"), ...)



参数----------Arguments----------

参数:nr.plots
integer; the number of plot figures you'll want to draw.
整数;图数字,你要画的数量。


参数:mfrow
instead of nr.plots: integer(2) vector giving the rectangular figure layout for par(mfrow= .).
,而不是nr.plots:整数(2)矢量的矩形图布局par(mfrow= .)。


参数:mfcol
instead of nr.plots: integer(2) vector giving the rectangular figure layout for par(mfcol= .).
,而不是nr.plots:整数(2)矢量的矩形图布局par(mfcol= .)。


参数:marP
numeric(4) vector of figure margins to add (&ldquolus”) to default mar, see below.
数字(4)向量图的利润(“+”)添加到默认的mar,见下文。


参数:mgp
argument for par(mpg= .) with a smaller default than usual.
par(mpg= .)一个较小的默认比平时的参数。


参数:mar
argument for par(mar= .) with a smaller default than usual, using the marP argument, see above.
par(mar= .)一个较小的默认往常一样,marP使用参数,见上面的论点。


参数:oma
argument for par(oma= .), by default for adding space for the main title if necessary.
参数为par(oma= .),默认main标题,如果有必要增加空间。


参数:main
character.  The main title to be used for the whole graphic.
字符。用于整个图形的主标题。


参数:tit.wid
numeric specifying the vertical width to be used for the main title; note that this is only used for the default value of oma (s. above).
数字指定要用于主标题的垂直宽度,注意的是这只是用于oma(第以上)的默认值。


参数:cex.main
numeric; the character size to be used for the main title.
数字;要用于主标题的字符尺寸。


参数:line.main
numeric; the line at which the title.
数字的那一行的标题。


参数:col.main, font.main
color and font for main title; see par(*) for details.
主标题的颜色和字体; par(*)的详细信息。


参数:quiet
logical; if TRUE, do not write the reminder about resetting par.
逻辑,如果TRUE,不写的提醒有关复位par。


参数:...
Further arguments to mtext for the main title.
进一步的论据mtext主标题。


值----------Value----------

A list with two components that are lists themselves, a subset of par(),
Alist:有两部分组成,本身是列表的一个子集的par(),


参数:new.par
the current par settings.
目前的par设置。


参数:old.par
the par before the call.
par之前调用。


(作者)----------Author(s)----------


Martin Maechler, UW Seattle, 1990.



参见----------See Also----------

par, layout.
par,layout。


实例----------Examples----------


opl <- mult.fig(5, main= expression("Sine Functions " * sin(n * pi * x)))
x <- seq(0, 1, len = 201)
for (n in 1:5)
  plot(x, sin(n * pi * x), ylab ="", main = paste("n = ",n))
par(opl$old.par)

rr <- mult.fig(mfrow=c(5,1), main= "Cosinus Funktionen", cex = 1.5,
               marP = - c(0, 1, 2, 0))
for (n in 1:5)
  plot(x, cos(n * pi * x), type = 'l', col="red", ylab ="")
str(rr)
par(rr$old.par)
## The *restored* par settings:[#恢复面值设置:]
str(do.call("par", as.list(names(rr$new.par))))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 05:44 , Processed in 0.034112 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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