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

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

[复制链接]
发表于 2012-9-30 13:05:39 | 显示全部楼层 |阅读模式
plotCV(SpatioTemporal)
plotCV()所属R语言包:SpatioTemporal

                                         Illustrates Predictions and Cross-validated Predictions
                                         说明预测和交叉验证的预测

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

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

Plots the result of (cross-validated) predictions. Given output from cond.expectation or predictCV this will plot the predicted values for one site along with approximate confidence intervalls, and observed data.
绘图(交叉验证)预测的结果。由于输出cond.expectation或predictCV这将绘制一个站点的预测值,一起近似的信心卷时间,并观察数据。


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


plotCV(pred.cv, ID, mesa.data = NA, add = FALSE, p = 0.95,
       col = c("black", "red", "grey"), lty=c(1,1), pch=c(NA,NA),
       cex=c(1,1))

plotPrediction(cond.exp, ID, mesa.data = NA, add = FALSE,
               p = 0.95, col = c("black", "red", "grey"),
               lty=c(1,1), pch=c(NA,NA), cex=c(1,1))



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

参数:pred.cv
Result of a cross-validation. Should be the output from predictCV.  
交叉验证的结果。应该是输出predictCV。


参数:cond.exp
Result of conditional expectations (predictions). Should be the output from cond.expectation, with only.obs=FALSE.  
条件期望的结果(预测)。应该是cond.expectation输出,only.obs=FALSE。


参数:ID
The location for which we want plots. Either a string matching the names in mesa.data$location$ID or an integer; if an integer the functions will plot data from  ID=mesa.data.model$location$ID[ID].  
的位置,我们希望图。无论是在mesa.data$location$ID或整数字符串匹配的名称,如果一个整数的函数将绘制的数据ID=mesa.data.model$location$ID[ID]。


参数:mesa.data
A data structure containing the observations, either mesa.data or <br> mesa.data.model. This is only needed if the location in ID is specified as an integer.  If mesa.data=NA then plotPrediction will not plot any observations.  
一个数据结构,包含的意见,是mesa.data或<br>mesa.data.model。如果只需要在ID的位置被指定为一个整数。如果mesa.data=NA然后plotPrediction不会绘制任何意见。


参数:add
Add to an existing plot, or start a new plot.  
添加到现有的图,或者开始一个新的图。


参数:p
Approximate coverage of the plotted confidence bands.  
约覆盖所绘制的置信区间。


参数:col
A vector of three colours to use when plotting the cross-validated predictions. The first is the colour of the predictions, second for the observations and third for the polygon illustrating the confidence bands.  
三种颜色的矢量绘图时使用的交叉验证的预测。第一个是颜色的预测,第二个用于观测和第三次的多边形出置信带。


参数:lty, pch
Line and/or point type to use when plotting the predictions and observations. The first value is for the predictions, the second for the observations. If any value is given as NA this implies no lines and/or points. Thus the default gives solid lines for both predictions and observations and no points. See points, lines, and par.  If only one value is given the function will use that value for both predictions and observations, e.g. lty=c(lty,lty).  
线和/或点式绘图时使用的预测和意见。第一个值的预言,第二个为观测。如果任何值给出NA这意味着没有行和/或点。因此,默认为实线为预测和意见,并没有点。见points,lines和par。如果只给出一个值,该函数将使用该值的预测和观察,如lty=c(lty,lty)。


参数:cex
Size of the points to use if pch!=NA, see points and par.  
大小分使用,如果pch!=NA,points和par。


值----------Value----------

Does not return anything.
不返回任何值。


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



Johan Lindstr枚m




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

See createCV and estimateCV for cross-validation set-up and estimation.
createCV和estimateCV交叉验证设置和估计。

For prediction, see fit.mesa.model and  cond.expectation.
预测,请参阅fit.mesa.model和cond.expectation。

For computing CV statistics, see also predictNaive and compute.ltaCV; for further illustration see  CVresiduals.qqnorm and summaryStatsCV.
对于计算CV统计,predictNaive和compute.ltaCV;为进一步说明,请参阅CVresiduals.qqnorm和summaryStatsCV。


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


##load data[#加载数据]
data(mesa.data.model)
data(mesa.data.res)

##############[#############]
##  plotCV  ##[###plotCV]
##############[#############]
##Extract pre-computed cross-validated predictions[#提取预先计算的交叉验证预测]
pred.cv <- mesa.data.res$pred.cv

##Plot observations with CV-predictions and [号地观测CV预测]
##95% prediction intervals[#95%预测区间]
par(mfcol=c(4,1),mar=c(2.5,2.5,2,.5))
plotCV(pred.cv,  1, mesa.data.model)
##different colours[#不同的颜色]
plotCV(pred.cv, 10, mesa.data.model,
    col=c("blue","magenta","light blue"))
##points and lines for the observations[#为观测点和线]
plotCV(pred.cv, 17, mesa.data.model, lty=1, pch=c(NA,19), cex=.5)
##location by name[#按名称的位置]
plotCV(pred.cv, "L002", mesa.data.model)

######################[#####################]
##  plotPrediction  ##[###plotPrediction]
######################[#####################]
##Extract pre-computed conditional expectations[#提取预先计算的条件期望。]
EX <- mesa.data.res$EX

##plot predictions and observations for 4 locations[#图4个地点的预测和观测]
par(mfrow=c(4,1),mar=c(2.5,2.5,2,.5))
plotPrediction(EX,  1, mesa.data.model)
##different colours[#不同的颜色]
plotPrediction(EX, 10, mesa.data.model,
    col=c("blue","black","light blue"))
##points for the observations[#点的意见]
plotPrediction(EX, 17, mesa.data.model, lty=c(1,NA),
               pch=c(NA,19), cex=.5)
##location by name[#按名称的位置]
plotPrediction(EX, "L002", mesa.data.model)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-11 05:08 , Processed in 0.029384 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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