clusplot.partition(cluster)
clusplot.partition()所属R语言包:cluster
Bivariate Cluster Plot (of a Partitioning Object)
二元集群剧情(一个分区对象)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Draws a 2-dimensional “clusplot” (clustering plot) on the current graphics device. The generic function has a default and a partition method.
绘制当前图形设备上的一个2维“clusplot”(集群图)。泛型函数有一个默认的partition方法。
用法----------Usage----------
clusplot(x, ...)
## S3 method for class 'partition'
clusplot(x, main = NULL, dist = NULL, ...)
参数----------Arguments----------
参数:x
an R object, here, specifically an object of class "partition", e.g. created by one of the functions pam, clara, or fanny.
R对象,在这里,特别是类的一个对象"partition",例如:的功能之一,创建pam,clara或fanny。
参数:main
title for the plot; when NULL (by default), a title is constructed, using x$call.
图的标题;当NULL(默认),构造一个标题,使用x$call。
参数:dist
when x does not have a diss nor a data component, e.g., for pam(dist(*), keep.diss=FALSE), dist must specify the dissimilarity for the clusplot.
时x没有diss也不是data组件,例如pam(dist(*), keep.diss=FALSE),dist必须指定为clusplot的的相异。
参数:...
optional arguments passed to methods, notably the clusplot.default method (except for the diss one) may also be supplied to this function. Many graphical parameters (see par) may also be supplied as arguments here.
可选参数传递给方法,尤其是clusplot.default法(除了diss)也可提供此功能。许多图形参数(见par)也可提供作为论据。
Details
详情----------Details----------
The clusplot.partition() method relies on clusplot.default.
clusplot.partition()clusplot.default方法依赖。
If the clustering algorithms pam, fanny and clara are applied to a data matrix of observations-by-variables then a clusplot of the resulting clustering can always be drawn. When the data matrix contains missing values and the clustering is performed with pam or fanny, the dissimilarity matrix will be given as input to clusplot. When the clustering algorithm clara was applied to a data matrix with NAs then clusplot will replace the missing values as described in clusplot.default, because a dissimilarity matrix is not available.
如果聚类算法pam,fanny和的变量clara被应用到的数据矩阵的意见,然后所产生的聚类clusplot总是可以得出。当数据矩阵包含缺失值和与pam或fanny,聚类,相异矩阵将作为输入clusplot。当聚类算法clara适用于NAS数据矩阵,然后clusplot将取代值作为描述clusplot.default,因为相异矩阵不可缺少。
值----------Value----------
For the partition (and default) method: An invisible list with components Distances and Shading, as for clusplot.default, see there.
对于的partition(default)方法:一种无形组件列表Distances和Shading,为clusplot.default,看到有。
副作用----------Side Effects----------
a 2-dimensional clusplot is created on the current graphics device.
2维clusplot的当前图形设备上创建。
参见----------See Also----------
clusplot.default for references; partition.object, pam, pam.object, clara, clara.object, fanny, fanny.object, par.
clusplot.default参考partition.object,pam,pam.object,clara,clara.object,fanny,fanny.object par。
举例----------Examples----------
## generate 25 objects, divided into 2 clusters.[#产生25个对象,分为2簇。]
x <- rbind(cbind(rnorm(10,0,0.5), rnorm(10,0,0.5)),
cbind(rnorm(15,5,0.5), rnorm(15,5,0.5)))
clusplot(pam(x, 2))
## add noise, and try again :[#添加噪声,并再次尝试:]
x4 <- cbind(x, rnorm(25), rnorm(25))
clusplot(pam(x4, 2))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|