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

R语言 RobAStBase包 plot-methods()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-27 19:56:37 | 显示全部楼层 |阅读模式
plot-methods(RobAStBase)
plot-methods()所属R语言包:RobAStBase

                                         Methods for Function plot in Package ‘RobAStBase’
                                         法函数图在包RobAStBase“的

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

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

plot-methods
图方法


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


## S4 method for signature 'IC,missing'
plot(x, ..., withSweave = getdistrOption("withSweave"),
             main = FALSE, inner = TRUE, sub = FALSE,
             col.inner = par("col.main"), cex.inner = 0.8,
             bmar = par("mar")[1], tmar = par("mar")[3],
             mfColRow = TRUE, to.draw.arg = NULL)
## S4 method for signature 'IC,numeric'
plot(x, y, ..., cex.pts = 1,
                            col.pts = par("col"), pch.pts = 1, jitter.fac = 1,
                            with.lab = FALSE, lab.pts = NULL, lab.font = NULL,
             which.lbs = NULL, which.Order  = NULL, return.Order = FALSE)



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

参数:x
object of class "IC": IC to be plotted
类的对象"IC":IC要绘制


参数:y
missing or numeric (a dataset, e.g.)
失踪或数字(数据集,例如)


参数:withSweave
logical: if TRUE (for working with Sweave) no extra device is opened
逻辑:如果TRUE(工作Sweave)没有额外的设备被打开


参数:main
logical: is a main title to be used? or <br> just as argument main in plot.default.
符合逻辑的:是一个主标题使用? ,或<br>只是作为参数main中plot.default。


参数:inner
logical: do panels have their own titles? or <br> character vector of / cast to length 'number of plotted  dimensions'; if argument to.draw.arg is used, this refers to  a vector of length length(to.draw.arg), the  actually plotted dimensions. For further information, see also  description of argument main in plot.default.
逻辑:做面板有自己的游戏吗?或<br>的字符向量/施放长度“绘制尺寸;如果参数to.draw.arg使用,这是指一个向量的长度length(to.draw.arg),实际绘制的尺寸。欲了解更多信息,请参阅参数的描述main中plot.default。


参数:sub
logical: is a sub-title to be used? or <br> just as argument sub in plot.default.
符合逻辑的:是要使用一个子标题吗? ,或<br>只是作为参数sub中plot.default。


参数:tmar
top margin &ndash; useful for non-standard main title sizes
- 有用的页边距为标准的主标题大小非


参数:bmar
bottom margin &ndash; useful for non-standard sub title sizes
底部边缘 - 可用于非标字幕大小


参数:cex.inner
magnification to be used for inner titles relative to the current setting of cex; as in par
放大倍率的相对的当前设置cex,par的内标题


参数:col.inner
character or integer code; color for the inner title
字符或整数代码;内标题的颜色


参数:mfColRow
shall default partition in panels be used &mdash; defaults to TRUE
应面板中使用默认的分区 - 默认TRUE


参数:to.draw.arg
Either NULL (default;  everything is plotted) or a vector of either integers  (the indices of the subplots to be drawn) or characters  &mdash; the names of the subplots to be drawn: these names are to be chosen either among the row names of  the trafo matrix  rownames(trafo(eval(x@CallL2Fam)@param))  or if the last expression is NULL a  vector "dim<dimnr>", dimnr running through  the number of rows of the trafo matrix.
要么NULL(预设值;一切绘制)或整数(要被绘制的次要图的指数)或字符 - 的次要图的名称,要绘制的向量:这些名称都是选择之间名称的trafo矩阵行中的最后一个表达式是rownames(trafo(eval(x@CallL2Fam)@param))或如果NULL向量"dim<dimnr>",dimnr运行通过数行的trafo矩阵。


参数:cex.pts
size of the points of the second argument plotted
尺寸绘制的第二个参数的点


参数:col.pts
color of the points of the second argument plotted
第二个参数点的颜色绘制


参数:pch.pts
symbol of the points of the second argument plotted
符号绘制的第二个参数的点


参数:with.lab
logical; shall labels be plotted to the observations?
逻辑;标签绘制的观察吗?


参数:lab.pts
character or NULL; labels to be plotted to the observations; if NULL observation indices;
字符或NULL;的标签要绘制的观察,如果NULL的观察指标;


参数:lab.font
font to be used for labels
要使用的字体为标签


参数:jitter.fac
jittering factor used in case of a DiscreteDistribution for plotting points of the second argument in a jittered fashion.
抖动因素的DiscreteDistribution绘制点的第二个参数中抖动的时尚。


参数:which.lbs
either an integer vector with the indices of the observations to be plotted into graph or NULL &mdash; then no observation is excluded
是一个整数的观测值的索引向量,被绘制到图形或NULL - 则没有观察被排除


参数:which.Order
we order the observations (descending) according to the norm given by normtype(object); then which.Order either is an integer vector with the indices of the ordered observations (remaining after a possible reduction by argument which.lbs) to be plotted into graph or NULL &mdash; then no (further) observation is excluded.
我们订购的意见(降序)根据规范normtype(object),which.Order要么是一个整数向量所订购的意见(可能减少后剩余的指标参数which.lbs )被绘制成图形或NULL - 没有被排除进一步观察。


参数:return.Order
logical; if TRUE, an order vector is returned; more specifically, the order of the (remaining) observations given by their original index is returned (remaining means: after a possible reduction by argument which.lbs, and ordering is according to the norm given by normtype(object)); othervise we return invisible() as usual.
逻辑;若TRUE,返回的命令矢量;更具体地,给出的他们的原始索引的(剩余的)观测的顺序被返回(剩余的装置:可能减少由参数which.lbs后,和排序是根据normtype(object)); othervise我们返回invisible()像往常一样规范。


参数:...
further parameters for plot
更多的参数为plot


Details

详细信息----------Details----------

Any parameters of plot.default may be passed on to this particular plot method.
plot.default的任何参数,可能会转嫁到这个特殊的plot方法。

We start describing the IC,missing-method: For main-, inner, and subtitles given as arguments main, inner, and sub, top and bottom margins are enlarged to 5 resp. 6 by default but may also be specified by tmar / bmar arguments. If main / inner / sub are logical then if the respective argument is FALSE nothing is done/plotted, but if it is TRUE, we use a default main title taking up the calling arguments in case of main, default inner titles taking up the class and (named) parameter slots of arguments in case of inner, and a "generated on <data>"-tag in case of sub. Of course, if main / inner / sub are character, this is used for the title; in case of inner it is then checked whether it has correct length. In all title arguments, the following patterns are substituted:   
我们开始描述IC,missing方法:对于主内,字幕作为参数main,inner和sub,顶部和底部边缘扩大到5 RESP账户。默认情况下,但也可以指定tmar/bmar参数。如果main/inner/sub是逻辑,如果相应的参数是FALSE没有做/绘制,但如果是TRUE,我们使用一个在情况main,默认的内部标题占用的类和(命名的)参数时隙的参数箱子inner,和一个“上的<data>生成的调用参数的默认主标题“标记的情况下sub。当然,如果main/inner/sub是character,这是作为标题;的情况下,inner,然后检查是否有正确的长度。在所有标题参数,下面的模式所取代:

"%C"class of argument object
"%C"类的说法object

"%A"deparsed argument  object
"%A"的deparsed参数object

"%D"time/date-string when the plot was generated   
"%D"时间/日期字符串时的图生成

If argument ... contains argument ylim, this may either be as in plot.default (i.e. a vector of length 2) or a vector of  length 2*(number of plotted dimensions + 2),  where the first two elements are the values for ylim  in panel "d",  the first two are for ylim resp. xlim  for panels "p" and "q", and the last 2*(number of plotted dimensions) are the values for ylim for the plotted dimensions of the L2derivative,  one pair for each dimension.
如果参数...包含参数ylim,这可能是当在plot.default(即长度为2)或一个矢量的长度为2 *(数的绘制尺寸+ 2)的向量,其中前两个元素的值ylim面板“D”,前两个是ylimRESP。 xlim面板“p”和“q”的,和最后2 *(绘制尺寸的数量)为ylim为绘制的L2derivative,一对用于每个维度的尺寸的值。

The IC,numeric-method calls the IC,missing-method but in addition plots the values of a dataset into the IC.
IC,numeric-方法调用IC,missing-方法,但是,除了图中的数据集的值到IC。


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


IC1 <- new("IC")
plot(IC1)
plot(IC1, main = TRUE, panel.first= grid(),
     col = "blue", cex.main = 2, cex.inner = 1)

### selection of subpanels for plotting[##选择的子面板的图]
N <- NormLocationScaleFamily(mean=0, sd=1)
IC2 <- optIC(model = N, risk = asCov())
par(mfrow=c(1,1))
plot(IC2, main = TRUE, panel.first= grid(),
     col = "blue", cex.main = 2, cex.inner = 0.6,
     mfColRow = FALSE, to.draw.arg=c("sd"))

## xlim and ylim arguments[#XLIM和ylim参数]
plot(IC2, main = TRUE, panel.first= grid(),
     ylim=c(-3,3), xlim=c(-2,3))
plot(IC2, main = TRUE, panel.first= grid(),
     ylim=c(-3,3,-1,3), xlim=c(-2,3))

data <- r(N)(30)
plot(IC2, data, panel.first= grid(),
     ylim = c(-3,3,-1,3), xlim=c(-2,3),
     cex.pts = 3, pch.pts = 1:2, col.pts="green",
     with.lab = TRUE, which.lbs = c(1:4,15:20),
     which.Order = 1:6, return.Order = TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 21:55 , Processed in 0.024126 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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