Re: [R] Problem with clusplot

2011-12-06 Thread Sarah Goslee
Well, if I had to guess (and I do, since we have no idea what your data look like, and calling your data matrix is a very bad idea): you have more variables than units, so clusplot() can't use princomp() to create a reduced- dimension plot. You could roll your own using a different ordination meth

[R] Problem with clusplot

2011-12-05 Thread elisacarli21
Dear all I'm trying to run a cluster analysis with R Here are the commands: mydata <- na.omit(matrix) # listwise deletion of missing mydata <- scale(matrix) # standardize variables fit <- kmeans(mydata, 8) # 8 cluster solution # get cluster means aggregate(mydata,by=list(fit$cluster),FUN=mean