Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
plotcluster和clusplot之间的区别_R_Cluster Computing_K Means - Fatal编程技术网

plotcluster和clusplot之间的区别

plotcluster和clusplot之间的区别,r,cluster-computing,k-means,R,Cluster Computing,K Means,我有两个不同的函数来绘制k-means的结果,plotcluster和clustlot,但我不明白区别是什么。有人能解释一下区别吗 fit <- kmeans(mydataScaled, 3) # Cluster Plot against 1st 2 principal components # vary parameters for most readable graph library(cluster) clusplot(mydataScaled, fit$cluster, col

我有两个不同的函数来绘制k-means的结果,
plotcluster
clustlot
,但我不明白区别是什么。有人能解释一下区别吗

fit <- kmeans(mydataScaled, 3)

# Cluster Plot against 1st 2 principal components

# vary parameters for most readable graph
library(cluster)
clusplot(mydataScaled, fit$cluster, color=TRUE, shade=TRUE,
   labels=2, lines=0)

# Centroid Plot against 1st 2 discriminant functions
library(fpc)
plotcluster(mydataScaled, fit$cluster)
fit