r - Error in clusplot function -


i playing cluster analysis in r , plot cluster:

teste<-data.frame(v1=rnorm(100),v2=rexp(100),v3=runif(100) )  fit.c<- kmeans(teste,2) aggregate(teste,by=list(fit.c$cluster),fun=mean)  clusplot(teste, fit.c$cluster, color=true, shade=true,labels=2, lines=0) 

but gives me error:

error in clusplot.default(teste, fit.c$cluster, color = true, shade = true,     :  4 arguments passed .internal(nchar) requires 3 

does know happening? thank you

i ran code , got no problems. guessing there version mismatch between r , packages using. can make sure cluster package date (and other packages using matter), and/or update latest version of r?

if doesn't work, can add sessioninfo() information? helpful diagnosing these sorts of problems.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -