plotvgam(VGAM)
plotvgam()所属R语言包:VGAM
Default VGAM Plotting
默认VGAM绘图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Component functions of a vgam-class object can be plotted with plotvgam(). These are on the scale of the linear/additive predictor.
的一个vgam-class对象的组件功能,可以绘制plotvgam()。这些刻度上的线性/添加剂预测。
用法----------Usage----------
plotvgam(x, newdata = NULL, y = NULL, residuals = NULL,
rugplot = TRUE, se = FALSE, scale = 0, raw = TRUE,
offset.arg = 0, deriv.arg = 0, overlay = FALSE,
type.residuals = c("deviance", "working", "pearson", "response"),
plot.arg = TRUE, which.term = NULL, which.cf = NULL,
control = plotvgam.control(...), varxij = 1, ...)
参数----------Arguments----------
参数:x
A fitted VGAM object, e.g., produced by vgam, vglm, or rrvglm.
一个装有VGAM对象,例如,产生的vgam,vglm或rrvglm。
参数:newdata
Data frame. May be used to reconstruct the original data set.
数据框。可以被用来重建原始数据集。
参数:y
Unused.
未使用。
参数:residuals
Logical. If TRUE then residuals are plotted. See type.residuals
逻辑。如果TRUE然后绘制的残差。见type.residuals
参数:rugplot
Logical. If TRUE then a rug plot is plotted at the foot of each plot. These values are jittered to expose ties.
逻辑。如果TRUE然后在地毯的图绘制在脚下的每一个图。这些值抖动暴露的关系。
参数:se
Logical. If TRUE then approximate +-2 pointwise standard error bands are included in the plot.
逻辑。如果TRUE然后近似+-2逐点标准误差带中的图。
参数:scale
Numerical. By default, each plot will have its own y-axis scale. However, by specifying a value, each plot's y-axis scale will be at least scale wide.
数值。默认情况下,每个小区都会有自己的Y轴刻度。然而,指定一个值,每个小区的y轴的刻度将至少scale宽。
参数:raw
Logical. If TRUE then the smooth functions are those obtained directly by the algorithm, and are plotted without having to premultiply with the constraint matrices. If FALSE then the smooth functions have been premultiply by the constraint matrices. The raw argument is directly fed into predict.vgam().
逻辑。如果TRUE然后光滑函数是那些直接得到由该算法,而具有与约束矩阵premultiply绘制。如果FALSE然后顺利的功能已经premultiply的约束矩阵。直接送入rawpredict.vgam()参数。
参数:offset.arg
Numerical vector of length r. These are added to the component functions. Useful for separating out the functions when overlay is TRUE. If overlay is TRUE and there is one covariate then using the intercept values as the offsets can be a good idea.
数值向量的长度r。这些被添加的组件的功能。分离出来的功能,当overlay是TRUE,非常有用。如果overlay是TRUE有一个协变量,然后使用的拦截值的偏移量可以是一个好主意。
参数:deriv.arg
Numerical. The order of the derivative. Should be assigned an small integer such as 0, 1, 2. Only applying to s() terms, it plots the derivative.
数值。该衍生物的顺序。应分配一个小的,如0,1,2的整数。只适用于s()条款,它绘制的衍生工具。
参数:overlay
Logical. If TRUE then component functions of the same covariate are overlaid on each other. The functions are centered, so offset.arg can be useful when overlay is TRUE.
逻辑。如果TRUE然后组件的功能相同协变量的彼此重叠。为中心的功能,所以offset.arg可以是有用的,当overlay是TRUE,。
参数:type.residuals
if residuals is TRUE then the first possible value of this vector, is used to specify the type of residual.
如果residualsTRUE然后此向量的第一个可能的值,用于指定类型的残留。
参数:plot.arg
Logical. If FALSE then no plot is produced.
逻辑。如果FALSE那是没有图。
参数:which.term
Character or integer vector containing all terms to be plotted, e.g., which.term = c("s(age)", "s(height")) or which.term = c(2, 5, 9). By default, all are plotted.
字符或整数向量被绘制的所有条款,例如,which.term = c("s(age)", "s(height"))或which.term = c(2, 5, 9)。默认情况下,所有的绘制。
参数:which.cf
An integer-valued vector specifying which linear/additive predictors are to be plotted. The values must be from the set {1,2,...,r}. By default, all are plotted.
一个整数值向量指定线性/添加剂预测因子以被绘制。这些值必须是集合{1,2,...,r}。默认情况下,所有的绘制。
参数:control
Other control parameters. See plotvgam.control.
其他的控制参数。见plotvgam.control。
参数:...
Other arguments that can be fed into plotvgam.control. This includes line colors, line widths, line types, etc.
其他的论点,可以送入plotvgam.control。这包括线的颜色,线宽,线型等。
参数:varxij
Positive integer. Used if xij of vglm.control was used, this chooses which inner argument the component is plotted against. This argument is related to raw = TRUE and terms such as NS(dum1,dum2) and constraint matrices that have more than one column. The default would plot the smooth against dum1 but setting varxij = 2 could mean plotting the smooth against dum2. See the VGAM website for further information.
正整数。如果使用xijvglm.control,这个选择组件内参数暗算。这种说法是raw = TRUE和如NS(dum1,dum2)和约束矩阵,有一个以上的列。在默认情况下将绘制顺利反对dum1但在varxij = 2可能意味着对dum2绘制的顺利。请参阅VGAM网站获取更多信息。
Details
详细信息----------Details----------
In this help file M is the number of linear/additive predictors, and r is the number of columns of the constraint matrix of interest.
在此帮助文件M数的线性/添加剂的预测,r是利益的约束矩阵的列数。
Many of plotvgam()'s options can be found in plotvgam.control, e.g., line types, line widths, colors.
许多plotvgam()s选项可以发现在plotvgam.control,例如,线的类型,线宽度,颜色。
值----------Value----------
The original object, but with the preplot slot of the object assigned information regarding the plot.
原来的对象,但preplot插槽的分配对象有关的图。
注意----------Note----------
While plot(fit) will work if class(fit) is "vgam", it is necessary to use plotvgam(fit) explicitly otherwise.
虽然plot(fit)如果class(fit)是"vgam",它使用plotvgam(fit)明确,否则是必要的。
plotvgam() is quite buggy at the moment.
plotvgam()是相当不稳定的时刻。
(作者)----------Author(s)----------
Thomas W. Yee
参考文献----------References----------
Vector generalized additive models. Journal of the Royal Statistical Society, Series B, Methodological, 58, 481–493.
http://www.stat.auckland.ac.nz/~yee contains further information and examples.
参见----------See Also----------
vgam, plotvgam.control, predict.vgam, vglm.
vgam,plotvgam.control,predict.vgam,vglm。
实例----------Examples----------
coalminers = transform(coalminers, Age = (age - 42) / 5)
fit = vgam(cbind(nBnW, nBW, BnW, BW) ~ s(Age),
binom2.or(zero = NULL), coalminers)
## Not run: par(mfrow = c(1,3))[#不运行:PAR(mfrow = C(1,3))]
plot(fit, se = TRUE, ylim = c(-3, 2), las = 1)
plot(fit, se = TRUE, which.cf = 1:2, lcol = "blue", scol = "orange",
ylim = c(-3, 2))
plot(fit, se = TRUE, which.cf = 1:2, lcol = "blue", scol = "orange",
overlay = TRUE)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|