Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

#29_basic_dendrogram

 

This is a basic dendrogram.

The dataset used to build this figure is made by

  • 3 species : Dicoccoides / Dicoccum / Durum
  • 2 treatments : High or Low Nitrogen
  • 4 samples per specie per treatment.
  • For each sample we measure the expression of 5 genes

The dendrogram permits to vizualise distances between samples, grouping close samples together. Le’ts calculate this distances :

Now that we have the distances between each pairs of sample, how does it work to build the Tree ?

PRINCIPLE : We have distances between objects. We seek the smallest distance between 2 objects. We aggregate the 2 objects in a cluster. These 2 points are replaced by theyr barycenter.Then we seek the two points or cluster that have the smallest distance. We repeat until having only one cluster containing every points. There are several ways to calculate the distance between 2 clusters ( using the max between 2 points of the clusters, or the mean, or the min, or ward (default) ).

This method is implemented in the hclust function.

Then we just have to plot this the dendrogram

 


Not what you are looking for ? Make a new search !

 


Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz