trplot.qrrvglm(VGAM)
trplot.qrrvglm()所属R语言包:VGAM
Trajectory plot for QRR-VGLMs
QRR-VGLMs的轨迹图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Produces a trajectory plot for quadratic reduced-rank vector generalized linear models (QRR-VGLMs). It is only applicable for rank-1 models with argument Norrr = ~ 1.
产生二次降维的向量广义线性模型(QRR VGLMs)的轨迹图。这是只适用于等级1模型参数Norrr = ~ 1。
用法----------Usage----------
trplot.qrrvglm(object, whichSpecies = NULL, add=FALSE, plot.it = TRUE,
label.sites = FALSE, sitenames = rownames(object@y),
axes.equal = TRUE, cex = par()$cex,
col = 1nos * (nos - 1)/2), log = "",
lty = rep(par()$lty, length.out = nos * (nos - 1)/2),
lwd = rep(par()$lwd, length.out = nos * (nos - 1)/2),
tcol = rep(par()$col, length.out = nos * (nos - 1)/2),
xlab = NULL, ylab = NULL,
main = "", type = "b", check.ok = TRUE, ...)
参数----------Arguments----------
参数:object
Object of class "qrrvglm", i.e., a CQO object.
对象的类"qrrvglm",即一个CQO对象。
参数:whichSpecies
Integer or character vector specifying the species to be plotted. If integer, these are the columns of the response matrix. If character, these must match exactly with the species' names. The default is to use all species.
整数或字符向量,指定要绘制的物种。如果是整数,这些都是响应矩阵的列。如果字符,这些物种的名字必须完全匹配。默认值是使用所有的物种。
参数:add
Logical. Add to an existing plot? If FALSE (default), a new plot is made.
逻辑。添加到现有图?如果FALSE(默认),一个新的绘图。
参数:plot.it
Logical. Plot it?
逻辑。图呢?
参数:label.sites
Logical. If TRUE, the points on the curves/trajectories are labelled with the sitenames.
逻辑。如果TRUE“的曲线/轨迹上的点都标有sitenames。
参数:sitenames
Character vector. The names of the sites.
字符向量。网站的名称。
参数:axes.equal
Logical. If TRUE, the x- and y-axes will be on the same scale.
逻辑。如果TRUE,在x轴和y轴将在同样的规模。
参数:cex
Character expansion of the labelling of the site names. Used only if label.sites is TRUE. See the cex argument in par.
字符扩展的站点名称的标签。使用,只有label.sites是TRUE。 cex在par参数。
参数:col
Color of the lines. See the col argument in par. Here, nos is the number of species.
线条的颜色。 col在par参数。在这里,nos是物种的数量。
参数:log
Character, specifying which (if any) of the x- and y-axes are to be on a logarithmic scale. See the log argument in par.
字符,指定哪一个(如果有的话)的x轴和y轴是对数刻度上。 log在par参数。
参数:lty
Line type. See the lty argument of par.
线路类型。请参阅ltypar参数。
参数:lwd
Line width. See the lwd argument of par.
线条宽度。请参阅lwdpar参数。
参数:tcol
Color of the text for the site names. See the col argument in par. Used only if label.sites is TRUE.
站点名称的文本颜色。 col在par参数。使用,只有label.sites是TRUE。
参数:xlab
Character caption for the x-axis. By default, a suitable caption is found. See the xlab argument in plot or title.
的x-轴的字符标题。默认情况下,找到一个合适的标题。 xlabplot或title参数。
参数:ylab
Character caption for the y-axis. By default, a suitable caption is found. See the xlab argument in plot or title.
y-轴的字符标题。默认情况下,找到一个合适的标题。 xlabplot或title参数。
参数:main
Character, giving the title of the plot. See the main argument in plot or title.
人物,图的标题。 mainplot或title参数。
参数:type
Character, giving the type of plot. A common option is to use type="l" for lines only. See the type argument of plot.
字符,图的类型。一个常用的选项是使用type="l"行只。请参阅typeplot参数。
参数:check.ok
Logical. Whether a check is performed to see that Norrr = ~ 1 was used. It doesn't make sense to have a trace plot unless this is so.
逻辑。是否执行一个检查看到Norrr = ~ 1使用。它有一丝图没有任何意义,除非是这样的话。
参数:...
Arguments passed into the plot function when setting up the entire plot. Useful arguments here include xlim and ylim.
到plot函数传递参数时,设立了整个图。有用的参数包括:xlim和ylim。
Details
详细信息----------Details----------
A trajectory plot plots the fitted values of a "second" species against a "first" species. The argument whichSpecies must therefore contain at least two species. By default, all of the species that were fitted in object are plotted. With more than a few species the resulting plot will be very congested, and so it is recommended that only a few species be selected for plotting.
的轨迹曲线图的拟合值的“第二个”物种对一个第一的物种。参数whichSpecies因此,必须包含至少两个品种。默认情况下,所有的,被安装在object的种绘制。以上数种产生的图将非常拥挤,所以建议只有少数几个物种被选中的图。
In the above, M is the number of species selected for plotting, so there will be M*(M-1)/2 curves/trajectories in total.
在上面的,M是数种选择打印,所以会有M*(M-1)/2曲线/总轨迹。
A trajectory plot will be fitted only if Norrr = ~ 1 because otherwise the trajectory will not be a smooth function of the latent variables.
的轨迹曲线将被装只有Norrr = ~ 1因为否则的轨迹不会是一个顺利的潜变量的函数。
值----------Value----------
A list with the following components.
与以下组件的列表。
参数:species.names
A matrix of characters giving the "first" and "second" species. The number of different combinations of species is given by the number of rows. This is useful for creating a legend.
矩阵的人物给人的“第一”和“第二个”种。物种的不同组合的数量由下式给出的行数。创建一个传奇,这是非常有用的。
参数:sitenames
A character vector of site names, sorted by the latent variable (from low to high).
字符向量的站点名称,排序的潜变量(从低到高)。
注意----------Note----------
Plotting the axes on a log scale is often a good idea. The use of xlim and ylim to control the axis limits is also a good idea, so as to limit the extent of the curves at low abundances or probabilities. Setting label.sites = TRUE is a good idea only if the number of sites is small, otherwise there is too much clutter.
对数尺度绘制的轴,通常是一个好主意。使用xlim和ylim控制轴的限制也是一个不错的主意,这样才能限制的程度,曲线在低丰度或概率。设置label.sites = TRUE是一个好主意,如果网站的数量是小,否则有太多的混乱。
(作者)----------Author(s)----------
Thomas W. Yee
参考文献----------References----------
On constrained and unconstrained quadratic ordination. Manuscript in preparation.
参见----------See Also----------
cqo, par, title.
cqo,par,title。
实例----------Examples----------
# hspider[,1:6] = scale(hspider[,1:6]) # Standardize the environmental variables[hspider [1:6] =比例(hspider [1:6])#规范的环境变量]
p1 = cqo(cbind(Alopacce, Alopcune, Alopfabr, Arctlute, Arctperi, Auloalbi,
Pardlugu, Pardmont, Pardnigr, Pardpull, Trocterr, Zoraspin) ~
WaterCon + BareSand + FallTwig + CoveMoss + CoveHerb + ReflLux,
fam = poissonff, data = hspider, trace = FALSE)
trplot(p1, whichSpecies = 1:3, log = "xy", type = "b", lty = 1,
main = "Trajectory plot of three hunting spiders species",
col = c("blue","red","green"), lwd = 2, label = TRUE) -> ii
legend(0.00005, 0.3, lwd = 2, lty = 1, col = c("blue","red","green"),
with(ii, paste(species.names[,1], species.names[,2], sep = " and ")))
abline(a = 0, b = 1, lty = "dashed") # Useful reference line[有用的参考线]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|