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
Post a Comment