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

R语言:plot.agnes()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 22:05:10 | 显示全部楼层 |阅读模式
plot.agnes(cluster)
plot.agnes()所属R语言包:cluster

                                        Plots of an Agglomerative Hierarchical Clustering
                                         凝聚层次聚类图

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

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

Creates plots for visualizing an agnes object.
创建agnes对象可视化的图谋。


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


## S3 method for class 'agnes'
plot(x, ask = FALSE, which.plots = NULL, main = NULL,
           sub = paste("Agglomerative Coefficient = ",round(x$ac, digits = 2)),
           adj = 0, nmax.lab = 35, max.strlen = 5, xax.pretty = TRUE, ...)



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

参数:x
an object of class "agnes", typically created by agnes(.).
类"agnes"的对象,通常创建agnes(.)。


参数:ask
logical; if true and which.plots is NULL, plot.agnes operates in interactive mode, via menu.
逻辑,如果真正和which.plots是NULL,plot.agnes在交互模式下运行,通过menu。


参数:which.plots
integer vector or NULL (default), the latter producing both plots.  Otherwise, which.plots must contain integers of 1 for a banner plot or 2 for a dendrogram or “clustering tree”.
整数向量或NULL(默认),后者生产两个图。否则,which.plots必须包含整数1为旗帜图或2一个树状或“聚类树”。


参数:main, sub
main and sub title for the plot, with convenient defaults.  See documentation for these arguments in plot.default.
主要图和子标题,方便的默认。见plot.default这些参数的文档。


参数:adj
for label adjustment in bannerplot().
标签bannerplot()调整。


参数:nmax.lab
integer indicating the number of labels which is considered too large for single-name labelling the banner plot.
整数,表示这被认为是单一名称标记的旗帜积过大的标签的数量。


参数:max.strlen
positive integer giving the length to which strings are truncated in banner plot labeling.
正整数旗帜图标签截断字符串的长度。


参数:xax.pretty
logical or integer indicating if pretty(*, n = xax.pretty) should be used for the x axis. xax.pretty = FALSE is for back compatibility.
逻辑或整数,指示pretty(*, n = xax.pretty)如果应为x轴的使用。 xax.pretty = FALSE是为后面的兼容性。


参数:...
graphical parameters (see par) may also be supplied and are passed to bannerplot() or pltree() (see pltree.twins), respectively.
图形参数(见par)也可提供,并传递给bannerplot()或pltree()(见pltree.twins),分别。


Details

详情----------Details----------

When ask = TRUE, rather than producing each plot sequentially, plot.agnes displays a menu listing all the plots that can be produced. If the menu is not desired but a pause between plots is still wanted one must set par(ask= TRUE) before invoking the plot command.
当ask = TRUE,而不是按顺序产生每个小区,plot.agnes显示一个菜单,列出了所有可以生产的图。如果菜单是不理想,但暂停图之间仍然想必须设置par(ask= TRUE)调用plot命令之前。

The banner displays the hierarchy of clusters, and is equivalent to a tree. See Rousseeuw (1986) or chapter 5 of Kaufman and Rousseeuw (1990). The banner plots distances at which observations and clusters are merged. The observations are listed in the order found by the agnes algorithm, and the numbers in the height vector are represented as bars between the observations.
的横幅,显示集群的层次,相当于一棵树。看到Rousseeuw(1986)或章考夫曼和Rousseeuw的(1990)5。意见和集群合并的旗帜图的距离。意见中列出在agnes算法,并在height向量的数字代表之间的意见条形发现的顺序。

The leaves of the clustering tree are the original observations.  Two branches come together at the distance between the two clusters being merged.
聚类树的叶子是原来的意见。两个分支一起被合并的两个群集之间的距离。

For more customization of the plots, rather call bannerplot and pltree(), i.e., its method pltree.twins, respectively.
对于更多定制图,而不是叫bannerplot和pltree(),即它的方法pltree.twins,分别。

directly with corresponding arguments, e.g., xlab or ylab.
直接与相应的参数,如xlab或ylab。


副作用----------Side Effects----------

Appropriate plots are produced on the current graphics device. This can be one or both of the following choices: <br> Banner <br> Clustering tree
当前图形设备上产生适当的图。这可以是一个或两个以下的选择:参考图参考聚类树


注意----------Note----------

In the banner plot, observation labels are only printed when the number of observations is limited less than nmax.lab (35, by default), for readability.  Moreover, observation labels are truncated to maximally max.strlen (5) characters.
横幅中的图,观察标签只印时是有限的若干意见(默认35)比nmax.lab少,可读性。此外,观察标签被截断,以最大限度max.strlen(5)字符。

For the dendrogram, more flexibility than via pltree() is provided by dg <- as.dendrogram(x) and plotting dg via plot.dendrogram.
树状图,更灵活地比通过pltree()dg <- as.dendrogram(x)和绘图dg经plot.dendrogram。


参考文献----------References----------

Finding Groups in Data: An Introduction to Cluster Analysis. Wiley, New York.
in Data Analysis and Informatics 4; edited by E. Diday, Y. Escoufier, L. Lebart, J. Pages, Y. Schektman, and R. Tomassone. North-Holland, Amsterdam, 743&ndash;748.
Integrating Robust Clustering Techniques in S-PLUS, Computational Statistics and Data Analysis, 26, 17-37.

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

agnes and agnes.object; bannerplot, pltree.twins, and par.
agnes和agnes.object;bannerplot,pltree.twins,par。


举例----------Examples----------


## Can also pass `labels' to pltree() and bannerplot():[#也可以通过pltree()和bannerplot()标签:]
data(iris)
cS <- as.character(Sp <- iris$Species)
cS[Sp == "setosa"] <- "S"
cS[Sp == "versicolor"] <- "V"
cS[Sp == "virginica"] <- "g"
ai <- agnes(iris[, 1:4])
plot(ai, labels = cS, nmax = 150)# bannerplot labels are mess[bannerplot标签是乱]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 09:11 , Processed in 0.026243 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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