# How to visualise Hierarchical Clustering in R using (cluster) pkg

Hierarchical Clustering is a method of clustering that creates a tree-like structure called a dendrogram to represent the different clusters. This method can be implemented in R using the “cluster” package, which provides a set of functions for performing hierarchical clustering.

The main function for performing hierarchical clustering in the “cluster” package is “hclust()”. This function takes a dataset as input and returns an object that represents the dendrogram. The function can also take various arguments, such as the linkage method to be used (e.g. single, complete, average, etc.) and the distance metric to be used (e.g. Euclidean, Manhattan, etc.).

Once the “hclust()” function has been run, the dendrogram can be visualized using the “plot()” function. This function takes the object returned by “hclust()” as input and returns a plot of the dendrogram. The plot can be customized with various options such as the color and shape of the branches, labels, and more.

Another way to visualize the results of hierarchical clustering is by using heatmaps. The heatmap can be created by using the “heatmap()” function from the “graphics” package. This function takes the results of the clustering as input and returns a heatmap that can be customized with various options such as color schemes, labels and more.

In summary, Hierarchical Clustering is a method of clustering that creates a tree-like structure called a dendrogram to represent the different clusters. This method can be implemented in R using the “cluster” package. The main function for performing hierarchical clustering in the “cluster” package is “hclust()”. Once the “hclust()” function has been run, the dendrogram can be visualized using the “plot()” function and can be customized with various options such as the color and shape of the branches, labels, and more. Another way to visualize the results of hierarchical clustering is by using heatmaps. This can be done by using the “heatmap()” function from the “graphics” package.

In this Applied Machine Learning Recipe, you will learn: How to visualise Hierarchical Clustering in R using (cluster) pkg.

### Essential Gigs

**Nilimesh: I will develop time series forecasting model for you using python or r for $50 on…**

*For only $50, Nilimesh will develop time series forecasting model for you using python or r. | Note: please contact me…*www.fiverr.com

**Nilimesh: I will do your data analytics and econometrics projects in python for $50 on fiverr.com**

*For only $50, Nilimesh will do your data analytics and econometrics projects in python. | Note: please contact me…*www.fiverr.com

**Nilimesh: I will do your machine learning and data science projects in python for $50 on fiverr.com**

*For only $50, Nilimesh will do your machine learning and data science projects in python. | Note: please contact me…*www.fiverr.com

**Nilimesh: I will do your gis and spatial programming projects in python for $50 on fiverr.com**

*For only $50, Nilimesh will do your gis and spatial programming projects in python. | Note: please contact me before…*www.fiverr.com