clustA: Joining Clustering methods

Description Usage Arguments Author(s) Examples

Description

this function prints the plot of a kmeans clustering as well as the Ward Hierarchical Clustering along with the optimal number of clusters proposed by kmeans

Usage

1
clustA(data,kmeanclust,fit)

Arguments

data

The dataset to which you will apply the clustering process, no missing values allowed.

kmeanclust

An object obtained after using kmeans and defining a prior number of clusters

fit

It's an hclust object that generates a Cluster Dendrogram.

Author(s)

Anwaar Msehli

Examples

1
2
3
4
5
6
7
require(cluster)
require(factoextra)
data=USArrests
kmeanclust= kmeans(df, 4)
d <- dist(df, method = "euclidean")
fit <- hclust(d, method="ward.D")
clustA(data,kmeanclust,fit)

anwaarms/package-clustA documentation built on June 1, 2019, 4:03 a.m.