RCplot(VLMC)
RCplot()所属R语言包:VLMC
Residuals vs Context plot
残差与背景图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots the residuals of a fitted VLMC model against the contexts, i.e., produces a boxplot of residuals for all contexts used in the model fit.
图的残差的对上下文的装VLMC模型,即,产生一个盒形图的所有上下文中使用的模型拟合残差。
This has proven to be useful function, and the many optional arguments allow quite a bit of customization. However, the current implementation is somewhat experimental and the defaults have been chosen from only a few examples.
这已被证明是非常有用的功能,和许多可选参数,使相当多的定制。然而,目前的实现是有些实验和从只是几个例子,已被选择的默认值。
用法----------Usage----------
RCplot(x, r2 = residuals(x, "deviance")^2,
alphabet = x$alpha, lab.horiz = k <= 20,
do.call = TRUE,
cex.axis = if (k <= 20) 1 else if (k <= 40) 0.8 else 0.6,
y.fact = if (.Device == "postscript") 1.2 else 0.75,
col = "gray70", xlab = "Context", main = NULL,
med.pars = list(col = "red", pch = 12, cex = 1.25 * cex.axis),
ylim = range(0, r2, finite = TRUE),
...)
参数----------Arguments----------
参数:x
an R object of class vlmc.
R对象的的类vlmc。
参数:r2
numeric vector, by default of squared deviance residuals of x, but conceptually any (typically non-negative) vector of the appropriate length.
数值向量,默认情况下,x,但在概念上(通常非负)向量的长度合适的偏差残差的平方。
参数:alphabet
the alphabet to use for labeling the contexts, via id2ctxt.
字母来标记的上下文中使用,通过id2ctxt。
参数:lab.horiz
logical indicating if the context labels should be written horizontally or vertically.
逻辑说明,如果上下文标签应该被写入水平或垂直。
参数:do.call
logical indicating if the vlmc call should be put as subtitle.
逻辑vlmc调用应该将字幕。
参数:cex.axis
the character expansion for axis labeling, see also par. The default is only approximately good.
坐标轴标签的字符扩展,par。的默认只有约。
参数:y.fact
numeric factor for expanding the space to use for the context labels (when lab.horiz is false).
数字因素,扩大空间使用的上下文标签(当lab.horiz是假的)。
参数:col
color used for filling the boxes.
颜色,用于填充的框。
参数:xlab
x axis label (with default).
X轴标签(默认)。
参数:main
main title to be used, NULL entailing a sensible default.
主标题使用,NULL将会导致一个合理的默认。
参数:med.pars
graphical parameters to be used for coding of medians that are almost 0.
图形要使用的参数进行编码,几乎为0的中位数。
参数:ylim
y range limits for plotting.
y范围限制的图。
参数:...
further arguments to be passed to plot().
进一步的参数被传递到plot()。
值----------Value----------
Invisibly, a list with components <table summary="R valueblock"> <tr valign="top"><td>k</td> <td> the number of contexts (and hence box plots) used.</td></tr> <tr valign="top"><td>fID</td> <td> a factor (as used in the interncal call to plot.factor).</td></tr> <tr valign="top"><td>rp</td> <td> a list as resulting from the above call to plot.factor().</td></tr> </table>
不可见的,与组件的列表<table summary="R valueblock"> <tr valign="top"> <TD> k </ TD> <TD>使用的情况下(和箱线图)。 </ TD> </ TR> <tr valign="top"> <TD> fID</ TD> <td>一个因素(如使用在interncal呼叫plot.factor)。</ TD> </ TR> <tr valign="top"> <TD> rp</ TD> <td>一个列表,从上面的调用plot.factor()。</ TD> </ TR> </ TABLE>
(作者)----------Author(s)----------
Martin Maechler
参考文献----------References----------
M盲chler M. and B眉hlmann P. (2004) Variable Length Markov Chains: Methodology, Computing, and Software. J. Computational and Graphical Statistics 2, 435–455.
参见----------See Also----------
summary.vlmc for other properties of a VLMC model.
summary.vlmc其他属性的VLMC模型。
实例----------Examples----------
example(vlmc)
RCplot(vlmc.pres)
RCplot(vlmc.dt1c01)## << almost perfect fit (0 resid.)[#<<近乎完美的配合(0渣油。)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|