R 从簇图中删除点(额外)

R 从簇图中删除点(额外),r,plot,cluster-analysis,R,Plot,Cluster Analysis,是否有办法从factoextra软件包(factominer的绘图软件包)的fviz_集群功能中删除点 如你所见,这是一个有点混乱的点,我想保持集群中心和椭球只 fviz_集群(HCPC9CL,repel=FALSE,geom=“point”,show.clust.cent=TRUE,eliple.type=“norm”,palete=trololo,ggtheme=theme_minimal(), main=“Factor map”)也许最简单的解决方案是设置alpha=0 以下是一个例子:

是否有办法从factoextra软件包(factominer的绘图软件包)的
fviz_集群
功能中删除点

如你所见,这是一个有点混乱的点,我想保持集群中心和椭球只

fviz_集群(HCPC9CL,repel=FALSE,geom=“point”,show.clust.cent=TRUE,eliple.type=“norm”,palete=trololo,ggtheme=theme_minimal(),

main=“Factor map”)

也许最简单的解决方案是设置
alpha=0

以下是一个例子:

set.seed(123)
data(iris)
iris.scaled <- scale(iris[, -5])
km.res <- kmeans(iris.scaled, 3, nstart = 10)


fviz_cluster(km.res, iris[, -5],
             repel = FALSE,
             geom = "point",
             show.clust.cent = TRUE,
             ellipse.type = "norm",
             ggtheme = theme_minimal(),
             main = "Factor map",
             alpha = 0)

我一点也没有想到透明度!谢谢你,先生!在我的绘图中,我想去掉标签,但即使我设置了
labelsize=0
,标签仍然存在。
fviz_cluster(km.res, iris[, -5],
             repel = FALSE,
             geom = "point",
             show.clust.cent = TRUE,
             ellipse.type = "norm",
             ggtheme = theme_minimal(),
             main = "Factor map",
             alpha = 0.2,
             shape = 19)