search for: tab_princomp

Displaying 1 result from an estimated 1 matches for "tab_princomp".

2002 Sep 09
1
Re: Biplot function of PCA
...sented by their numbers (the line of the data matrix), 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 writ...