Usage of hang in dendogram in R

You can plot the dendrogram with:


plot(clust.res)





















Please check how the ends of the branches are ragged, all the labels are not at the same level in y coordinate. This can be fixed easily by specifying any negative number for the hang value as below:

plot(clust.res,hang=-1) #note that the y-axis scale does not extend to zero, although each line does.






No comments:

Post a Comment

7 Stages of Machine Learning - Framework Introduction

Framework Introduction 7 Stages Introduction Stage 1: Problem Definition Stage 2: Data Collection Stage 3: Data Preparation Stage 4: Data Vi...