plotMesaData(SpatioTemporal)
plotMesaData()所属R语言包:SpatioTemporal
Illustrates the Observations as Timeseries
说明作为时间序列观测
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots either the time-series of observations or residuals of a regression of observations on the temporal trends in mesa.data$trend; for the residuals this plots either the raw residuals or the (partial) autocorrelation function.
图无论是时间序列观测或观测的回归残差的时间趋势mesa.data$trend;残差此图无论是原材料的残留物或自相关函数(部分)。
用法----------Usage----------
plotMesaData(mesa.data, ID, add = FALSE, type = "obs",
lag.max = NULL)
参数----------Arguments----------
参数:mesa.data
A data structure containing the observations, either mesa.data or <br> mesa.data.model.
一个数据结构,包含的意见,是mesa.data或<br>mesa.data.model。
参数:ID
The location for which we want to plot observations. 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]。
参数:add
Add to an existing plot, or start a new plot. Ignored if type="acf" or <br> "pacf".
添加到现有的图,或者开始一个新的图。如果忽略type="acf"或<br>"pacf"。
参数:type
A string indicating which type of plot to construct. Valid options are "obs", "res", "acf", and "pacf".
一个字符串,指示哪种类型的图构建。有效的选项是"obs","res","acf"和"pacf"。
参数:lag.max
Maximum lag for which to calculate the (p)acf, see acf for details.
最大的滞后计算(P)ACF,请参阅acf的详细信息。
Details
详细信息----------Details----------
The function plots either timeseries of observations at the location specified by ID, or residuals from the regression of observations on the smooth temporal trends in mesa.data$trend.
函数曲线,无论是时间序列的观测,在指定的位置ID,或残留的时间趋势mesa.data$trend顺利回归的观察。
When plotting observations (type="obs") this plots both observations and the best fit of the trend functions to the observations. type="res" plots the residuals of observations fitted to the temporal trends; this also adds the y=0 line for reference. type="acf" or type="pacf" plots the autocorrelation function or partial autocorrelation function of the residuals.
当绘制意见(type="obs")本图都观测和最适合的趋势职能的观察。 type="res"安装的残差观察到的时间趋势图,这也增加了y=0线,以供参考。 type="acf"或type="pacf"绘制残差的自相关函数或部分自相关函数。
值----------Value----------
Does not return anything.
不返回任何值。
(作者)----------Author(s)----------
Johan Lindstr枚m
参见----------See Also----------
plotMonitoringLoc, printMesaDataNbrObs for additional data summaries.
plotMonitoringLoc,printMesaDataNbrObs额外的数据汇总。
实例----------Examples----------
##load data[#加载数据]
data(mesa.data)
##plot the first site,[#图的第一个网站,]
par(mfrow=c(4,1),mar=c(2.5,2.5,3,1))
plotMesaData(mesa.data, ID=1, type="obs")
##residuals from the temporal trends,[残差的时间趋势,]
plotMesaData(mesa.data, ID=1, type="res")
##afc [#亚足联]
plotMesaData(mesa.data, ID=1, type="acf")
##... and pafc for the residuals[#...与聚合氯化铝铁的残差]
plotMesaData(mesa.data, ID=1, type="pacf")
##Same as above but calling the 2nd site by name[#同上,但调用的第二个站点名称]
par(mfrow=c(4,1),mar=c(2.5,2.5,3,1))
plotMesaData(mesa.data, ID="60370016", type="obs")
plotMesaData(mesa.data, ID="60370016", type="res")
plotMesaData(mesa.data, ID="60370016", type="acf")
plotMesaData(mesa.data, ID="60370016", type="pacf")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|