plot.lmrob(robustbase)
plot.lmrob()所属R语言包:robustbase
Plot Method for "lmrob" Objects
为“lmrob”对象的绘制方法
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Diagnostic plots for elements of class lmrob
诊断图的元素类lmrob
用法----------Usage----------
## S3 method for class 'lmrob'
plot(x, which = 1:5,
caption = c("Standardized residuals vs. Robust Distances",
"Normal Q-Q vs. Residuals", "Response vs. Fitted Values",
"Residuals vs. Fitted Values" , "Sqrt of abs(Residuals) vs. Fitted Values"),
panel = points, sub.caption = deparse(x$call), main = "",
compute.MD = TRUE,
ask = prod(par("mfcol")) < length(which) && dev.interactive(),
..., p=0.025)
参数----------Arguments----------
参数:x
an object as created by lmrob
对象创建的lmrob
参数:which
integer number between 1 and 5 to specify which plot is desired
在1和5之间的整数,以指定所希望的积
参数:caption
Caption for the different plots
标题不同图
参数:panel
Panel
面板
参数:main
Main title
主标题
参数:sub.caption
sub titles
副标题
参数:compute.MD
logical indicating if the robust Mahalanobis distances should be recomputed, using covMcd() when needed, i.e., if which contains 1.
逻辑表明,如果强大的马氏距离,使用covMcd()在需要的时候,也就是说,如果which包含1,应重新计算。
参数:ask
waits for user input before displaying each plot
等待用户输入,然后显示每个小区
参数:...
optional arguments for par
可选参数为par
参数:p
threshold for distance-distance plot
阈值的距离 - 距离图
Details
详细信息----------Details----------
if compute.MD = TRUE and the robust Mahalanobis distances need to be computed, they are stored (“cached”) with the object x when this function has been called from top-level.
如果compute.MD = TRUE和强大的马氏距离需要计算,存储(“缓存”)的对象x这个函数被调用时,从顶层。
参考文献----------References----------
参见----------See Also----------
lmrob, also for examples, plot.lm.
lmrob,,也为例子,plot.lm。
实例----------Examples----------
data(starsCYG)
## Plot simple data and fitted lines[#图简单的数据和拟合线]
plot(starsCYG)
lmST <- lm(log.light ~ log.Te, data = starsCYG)
RlmST <- lmrob(log.light ~ log.Te, data = starsCYG)
RlmST
abline(lmST, col = "red")
abline(RlmST, col = "blue")
op <- par(mfrow = c(2,2), mgp = c(1.5, 0.6, 0), mar= .1+c(3,3,3,1))
plot(RlmST, which = c(1:2, 4:5))
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|