For hierarchical clustering, how to find the “center” in each cluster in R?

Hello,

I would like to know the central point of each cluster by the hierarchical clustering method in software R.

Below the codes I obtained to find the clusters, now I would like to know the central point of each one.

Thank you!

library (readxl)
B1 <- read_excel ("C: / Users / Jovani / Google Drive / Google Drive PC / Work / Clustering /test.xlsx")
A<-scale (B1)
d<-dist(A)
fit.average<-hclust(d,method="average")
plot(fit.average,hang=-1,cex=.8,main="Average Linkage Clustering")
clusters<-cutree(fit.average, k=5)

library (factoextra)
fviz_cluster (list (data = A, cluster = clusters))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.