powered by
A plot function for K-medians and K-means
Kplot(a,propplot=0.95,graph=c('Two_Dim','Capushe','Profiles','SE','Criterion'), bestresult=TRUE,Ksel=FALSE,bycluster=TRUE)
No return value.
Output from Kmedians or Kmeans.
Kmedians
Kmeans
A scalar between 0 and 1 giving the propotion of data considered for the different graphs.
0
1
A string specifying the type of graph requested. Default is c('Two_Dim','Capushe','Profiles','SE','Criterion').
c('Two_Dim','Capushe','Profiles','SE','Criterion')
A logical indicating if the graphs must be done for the result chosen by the selected criterion. Default is TRUE.
TRUE
A logical or positive integer giving the chosen number of clusters for each the graphs should be drawn.
A logical indicating if the data selected for 'Two_Dim' and 'Profiles' graphs should be selected by cluster or not. Default is TRUE.
'Two_Dim'
'Profiles'
See also Kmedians and Kmeans.
if (FALSE) { n <- 500 K <- 3 pcont <- 0.2 ech <- gen_K(n=n,K=K,pcont=pcont) X <-ech$X res <- Kmedians(X,par=FALSE) Kplot(res) }
Run the code above in your browser using DataLab