Displaying 1 result from an estimated 1 matches for "km_kmean".
Did you mean:
km_kmeans
2002 Sep 09
1
Re: Biplot function of PCA
..., but I would need to change it.
I would like to have the possibility, to represent on a biplot, the
observations, by their name, or , by the group or the cluster they
belong.
For instance:
tab is a data.frame (4 variables x 52 obsevations)
pc.tab_princomp(tab,cor=TRUE)
biplot.princomp(pc.tab)
km_kmeans(tab,3,100)
cl_cutree(hclust(dist(tab)),k=3)
# I would like to obtain:
biplot.princomp(pc.tab, nomi=cl)
#or
biplot.princomp(pc.tab,nomi=km$cluster)
Like that I could see how the clusters are spread on the PCA.
So, my question is,
Shall I write myself this new function ?
Perhaps someone alr...