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

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

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

                                        Plot absolute and relative information
                                         图绝对和相对信息

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

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

Plot absolute and relative information of influence curves.
图绝对和相对信息的影响曲线。


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


infoPlot(object,  ...)
## S4 method for signature 'IC'
infoPlot(object, data = NULL, ...,
             withSweave = getdistrOption("withSweave"),
             col = par("col"), lwd = par("lwd"), lty,
             colI = grey(0.5), lwdI = 0.7*par("lwd"), ltyI = "dotted",
             main = FALSE, inner = TRUE, sub = FALSE,
             col.inner = par("col.main"), cex.inner = 0.8,
             bmar = par("mar")[1], tmar = par("mar")[3],
             with.legend = TRUE, legend.bg = "white",
             legend.location = "bottomright", legend.cex = 0.8,
             mfColRow = TRUE, to.draw.arg = NULL,
             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,
             ylab.abs = "absolute information",
             ylab.rel= "relative information")



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

参数:object
object of class "InfluenceCurve"
对象的类"InfluenceCurve"


参数:data
optional data argument — for plotting observations into the plot;
可选的数据参数 - 用于绘制观测到的图;


参数: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 compared  dimensions'; if argument to.draw.arg is used, this refers to  a vector of length 1 (absolute information)  + length(to.draw.arg), the actually plotted relative informations. For further information, see  also main in plot.default.
逻辑:做面板有自己的游戏吗?或<br>的字符向量/施放相比尺寸“长度”;如果参数to.draw.arg使用,这是指一个向量的长度1(绝对信息)+ 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
底部边缘 - 可用于非标字幕大小


参数:col
color of IC in argument object.
颜色的IC在参数object。


参数:lwd
linewidth of IC in argument object.
IC线宽参数object。


参数:lty
line-type of IC in argument object.
线路类型的IC参数object的。


参数:colI
color of the classically optimal IC
颜色的经典最优IC


参数:lwdI
linewidth of the classically optimal IC
经典最优IC的线宽。


参数:ltyI
line-type of the classically optimal IC
线路类型的经典最优IC


参数: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      
字符或整数代码;内标题的颜色


参数:with.legend
logical; shall a legend be plotted?
逻辑;绘制一个传奇吗?


参数:legend.location
a valid argument x for legend &mdash; the place where to put the legend on the last issued plot &mdash; or a list of length (number of plotted panels)  of such arguments, one for each plotted panel.
一个有效的参数xlegend - 的地方,把传说中的最后发出的图 - 或列表的长度(绘制板数)等参数,为每个绘制面板。


参数:legend.bg
background color for the legend
背景颜色的传说


参数:legend.cex
magnification factor for the legend
放大倍数的传说


参数: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 making a selection among the relative information plots; the absolute information being plotted in any case. This vector is either a vector of 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(object@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(object@CallL2Fam)@param)) 或,如果是最后一个表达式NULL的矢量"dim<dimnr>",dimnr运行通过的行的数目的trafo矩阵。


参数:cex.pts
size of the points of the data argument plotted
大小的data参数的点绘制


参数:col.pts
color of the points of the data argument plotted
颜色的data参数的点绘制


参数:pch.pts
symbol of the points of the data argument plotted
符号的data参数的点绘制


参数: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 data argument in a jittered fashion.
抖动因素的DiscreteDistributiondata参数抖动的方式绘制点的情况下。


参数: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, a list of length two with order vectors is returned &mdash; one for ordering w.r.t. the given IC, one for ordering w.r.t. the classically optimal IC; 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,为了向量的长度,则返回的列表 - 订购WRT给定的IC,一个用于订货w.r.t.经典最优的IC;更特别的是,原来的指数(剩余)观察的顺序被返回(剩余是指:参数可能减少which.lbs,订购后,根据规范normtype(object)); othervise我们返回invisible()像往常一样。


参数:ylab.abs
character; label to be used for y-axis in absolute information panel
字符;要使用的标签为y轴的绝对信息面板


参数:ylab.rel
character; label to be used for y-axis in relative information panel
字符;要使用的标签为y轴的相对信息面板


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


Details

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

Absolute information is defined as the square of the length of an IC. The relative information is defined as the  absolute information of one component with respect to the  absolute information of the whole IC; confer Section 8.1  of Kohl (2005). <br>
绝对信息被定义为一个IC的长度的平方。的相对的信息被定义为相对于整个IC的绝对信息的一个组成部分;赋予科尔(2005年)的第8.1节的绝对信息。参考

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

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:   
对于主内,并作为参数的字幕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 + e), where e is 1 or 0 depending on whether absolute information is plotted or not;  in the case of longer length,  if e is 1, the first two elements are the values for ylim  in panel "Abs", while the last 2*(number of plotted dimensions) are the values for ylim for the plotted dimensions of the IC,  one pair for each dimension.
如果参数...包含参数ylim,这可能是当在plot.default(即一个向量的长度为2)或一个矢量的长度为2 *(数绘制尺寸+五),其中,e是1或0取决于是否绝对信息绘制或不;如果e是1时,在长度较长的情况下,前两个元素为ylim面板中是“Abs”的值,而最后2 *(绘制尺寸的数量)的值ylim绘制的尺寸的IC,一对用于每个维度。


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


Matthias Kohl <a href="mailto:Matthias.Kohl@stamats.de">Matthias.Kohl@stamats.de</a>



参考文献----------References----------

Kohl, M. (2005) Numerical Contributions to the Asymptotic Theory of Robustness.  Bayreuth: Dissertation.

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

L2ParamFamily-class, IC-class
L2ParamFamily-class,IC-class


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


N <- NormLocationScaleFamily(mean=0, sd=1)
IC1 <- optIC(model = N, risk = asCov())
infoPlot(IC1)
## selection of subpanels for plotting[选择的子面板的图]
par(mfrow=c(1,2))
infoPlot(IC1, mfColRow = FALSE, to.draw.arg=c("Abs","sd"))
infoPlot(IC1, mfColRow = FALSE, to.draw.arg=c("Abs","mean"),
              panel.first= grid(), ylim = c(0,4), xlim = c(-6,6))
infoPlot(IC1, mfColRow = FALSE, to.draw.arg=c("Abs","mean"),
              panel.first= grid(), ylim = c(0,4,-3,3), xlim = c(-6,6))
par(mfrow=c(1,3))
infoPlot(IC1, mfColRow = FALSE, panel.first= grid(),
         ylim = c(0,4,0,.3,0,.8), xlim=c(-6,6))
par(mfrow=c(1,1))
data <- r(N)(20)
par(mfrow=c(1,3))
infoPlot(IC1, data=data, mfColRow = FALSE, panel.first= grid(),
         with.lab = TRUE, cex.pts=2,
         which.lbs = c(1:4,15:20), which.Order = 1:6,
         return.Order = TRUE)
infoPlot(IC1, data=data[1:10], mfColRow = FALSE, panel.first= grid(),
         with.lab = TRUE, cex.pts=0.7)
par(mfrow=c(1,1))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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