Kplot {Kmedians}R Documentation

Kplot

Description

A plot function for K-medians and K-means

Usage

Kplot(a,propplot=0.95,graph=c('Two_Dim','Capushe','Profiles','SE','Criterion'),
      bestresult=TRUE,Ksel=FALSE,bycluster=TRUE)

Arguments

a

Output from Kmedians or Kmeans.

propplot

A scalar between 0 and 1 giving the propotion of data considered for the different graphs.

graph

A string specifying the type of graph requested. Default is c('Two_Dim','Capushe','Profiles','SE','Criterion').

bestresult

A logical indicating if the graphs must be done for the result chosen by the selected criterion. Default is TRUE.

Ksel

A logical or positive integer giving the chosen number of clusters for each the graphs should be drawn.

bycluster

A logical indicating if the data selected for 'Two_Dim' and 'Profiles' graphs should be selected by cluster or not. Default is TRUE.

Value

No return value.

See Also

See also Kmedians and Kmeans.

Examples

## Not run: 
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)

## End(Not run)

[Package Kmedians version 2.2.0 Index]