plotMonitoringLoc(SpatioTemporal)
plotMonitoringLoc()所属R语言包:SpatioTemporal
Plot of Observation Locations and Dates
图观测的地点和日期
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plots observation locations (or values) against the date of each observation.
图解观察位置(或值)对每个观察日期。
用法----------Usage----------
plotMonitoringLoc(mesa.data, main = "", col = NULL, legend.loc =
"topleft", legend.names = NULL, add = FALSE,
obsplot=FALSE, pch=19, cex=.1, ...)
参数----------Arguments----------
参数:mesa.data
Data structure holding observations, as well as observation locations and dates of observations. See mesa.data and mesa.data.model.
数据结构观察,以及观察,观察的地点和日期。见mesa.data和mesa.data.model。
参数:main
A character string to be used as the main title of the plot.
一个字符串作为主标题的图。
参数:col
A vector containing the colors to be used for each monitoring type in the plot.
一个向量,包含用于每个监测中的图类型的颜色。
参数:legend.loc
The location of the legend. See legend.
位置的传说。见legend。
参数:legend.names
A vector of character strings to be used in the legend.
在传说中要使用一个字符串向量。
参数:add
If TRUE adds to an existing plot.
TRUE如果添加到现有的图。
参数:obsplot
If TRUE the function will plot a time trend of all raw observations, color-coded by type. Otherwise (default), location ID is plotted on the y-axis.
如果TRUE的功能将绘制的所有原始观测值的时间趋势,颜色编码的类型。否则(默认值),被绘制在y-轴的位置ID。
参数:cex, pch
Parameters controlling the plotting symbol; passed on to points. Default is a small filled circle.
参数控制绘图符号传递给points。默认情况下是一个小实心圆。
参数:...
Additional parameters passed to either plot or points, depending on the value of add.
额外的参数传递给任一plot或points,根据的价值add。
Details
详细信息----------Details----------
This function creates a plot where each of the monitoring locations (or observations if <br> obsplot=TRUE) are on the vertical axis, and each of the observation dates are on the horizontal axis. If obsplot=TRUE, the y-axis will show the raw observations instead of location ID, and the plot will be a composite time-trend of all observations (potentially) color coded by type.
这个函数创建一个图,每个监测地点(或观察,如果参考obsplot=TRUE)是在垂直轴上,各观察日期是在横轴上。如果obsplot=TRUE,y轴显示的原始观测值的位置ID,而该图将是一个复合的所有观测值的时间趋势(潜在的)颜色编码的类型。
If mesa.data$location$type contains location types, the monitoring locations are colour-coded by type; if mesa.data does not contain monitoring types, a single type for all locations is assumed. The colours to use are specified in col. By default the function uses 1:n, where n is the number of unique monitoring types. and col must be length 1.
如果mesa.data$location$type位置类型,监测位置不同的颜色编码的类型,假定如果mesa.data不包含监控类型,单一类型的所有位置。在col指定要使用的颜色。默认情况下,该函数使用1:n,n是独特的监控类型的数量。和col长度必须为1。
The vector legend.names should have length equal to the number of unique location types. The default legend names are the unique values found in mesa.data$location$type, see mesa.data. If mesa.data$location does not contain location types, legend.names must be of length 1 and the defaults to "Observations".
向量legend.names应具有独特的位置类型的数目的长度相等。默认的图例名称的唯一值mesa.data$location$type,mesa.data。如果mesa.data$location不包含位置类型,legend.names必须是长度为1,默认为"Observations"。
值----------Value----------
Does not return anything.
不返回任何值。
(作者)----------Author(s)----------
Johan Lindstr枚m
参见----------See Also----------
plotMesaData, printMesaDataNbrObs for further data summaries.
plotMesaData,printMesaDataNbrObs为进一步的数据汇总。
实例----------Examples----------
##load data[#加载数据]
data(mesa.data)
##standard plot[图#标准]
plotMonitoringLoc(mesa.data)
##different names/colours/etc[#不同的名称/颜色/等]
plotMonitoringLoc(mesa.data, main="A nice plot", col=c("green","blue"),
legend.names=c("Sites of one type", "..and of the other"),
legend.loc="bottomleft")
##composite time-trend[#复合分时走势]
plotMonitoringLoc(mesa.data, obsplot=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|