SlideShare ist ein Scribd-Unternehmen logo
1 von 85
Tal.Galili@gmail.com
user!2015 - The dendextend package
Tal.Galili@gmail.com
Talk outline
• Link to this presentation + dendextend
• 1 example
• The most useful functions
• Thanks!
Tal.Galili@gmail.com
Getting
this presentation
Go to: www.R-statistics.com
Or: just e-mail me:
Tal.Galili@gmail.com
Getting
dendextend
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Further reading
Tal.Galili@gmail.com
Further reading
(1 example - no code)
Tal.Galili@gmail.com
The Iris dataset
Tal.Galili@gmail.com
The Iris dataset
Tal.Galili@gmail.com
The Iris dataset
Using heatmap.2 from gplots
Tal.Galili@gmail.com
Why is “complete” different?
Comparing 8
Clustering algorithms on
The Iris dataset
Using dendlist,
cor.dendlist +
The corrplot package
Tal.Galili@gmail.com
Why is “complete” different?
Tal.Galili@gmail.com
Back to
basics
Tal.Galili@gmail.com
Building a
dendrogram
Tal.Galili@gmail.com
hclust -> dend
Tal.Galili@gmail.com
hclust -> dend
Tal.Galili@gmail.com
Useful functions
• labels
• labels_colors
• cutree
• color_branches
• sort
• tanglegram
• set (!)
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
2 useful
connections
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
https://plot.ly/~talgalili/ 6y/-sv-x/
Send a dendrogram to plot.ly
Tal.Galili@gmail.com
Send a dendrogram to d3heatmap
Joint work with Joe Cheng
Tal.Galili@gmail.com
Send a dendrogram to d3heatmap
http://asbcllc.com/blog/ 2015_abn/enuj/14_15_pot_50lmth.xedni/pamtaeh_
Tal.Galili@gmail.com
ONE more
function
Tal.Galili@gmail.com
Using pipes
%>%
(but first…)
Tal.Galili@gmail.com
hclust -> dend
Tal.Galili@gmail.com
hclust + pipes (via magrittr)
Tal.Galili@gmail.com
Changing a
dendrogram
Tal.Galili@gmail.com
The set function
set(dend, what, value)
One function
to rule them all!
Tal.Galili@gmail.com
The set function
set(dend, what, value)
• dend a dendrogram
• what the property to update
• value new values to set in the tree
Tal.Galili@gmail.com
The set function
set(dend, what, value)
Type “what"
Labels labels, labels_to_character, labels_colors,
labels_cex, labels_to_character
Leaves leaves_pch, leaves_col, leaves_cex, hang_leaves
Nodes nodes_pch, nodes_col, nodes_cex
Branches branches_lty, branches_col, branches_lwd,
branches_k_color, by_labels_branches_lty,
by_labels_branches_col, by_labels_branches_lwd
Tal.Galili@gmail.com
A dend exmaple
Tal.Galili@gmail.com
Modify labels
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Modify nodes (no code)
Tal.Galili@gmail.com
Modify nodes (no code)
Tal.Galili@gmail.com
Modify branches
Tal.Galili@gmail.com
Modify branches
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Rotate branches
Tal.Galili@gmail.com
Rotate branches
Tal.Galili@gmail.com
Prune branches
Tal.Galili@gmail.com
Prune branches
Tal.Galili@gmail.com
Add rectangles
Tal.Galili@gmail.com
Add rectangles
Tal.Galili@gmail.com
dendextend
and other packages
Tal.Galili@gmail.com
Gplots: heatmap.2
Tal.Galili@gmail.com
dynamicTreeCut
Tal.Galili@gmail.com
pvclust
Tal.Galili@gmail.com
Take-home messages:
• hclust – is good for creating hierarchical
clustering, but limited for plotting
• dendrogram object
• a nested list of lists
• with attributes!
• should be modified step by step before
plotting
• Dendrograms can be compared
• Use dendextendRcpp for (“free”) speed
Tal.Galili@gmail.com
Credits!
dendextend
This work was supported in part by the European Research Council under EC–EP7
European Research Council grant PSARPS-297519, and also by the HBP project.
Tal.Galili@gmail.com
Credits!
Tal.Galili@gmail.com
The dendextend package
Thank you!
for the slides:
R-statistics.com
Tal.Galili@gmail.com
Exploring a
dendrogram
Tal.Galili@gmail.com
Tal.Galili@gmail.com
A dendrogram is a nested list of lists
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Tal.Galili@gmail.com
Depth-
First
Search
Tal.Galili@gmail.com
Depth-
First
Search
Tal.Galili@gmail.com
Comparing
dendrograms
Tal.Galili@gmail.com
tanglegram + untangle
Tal.Galili@gmail.com
tanglegram + untangle
Tal.Galili@gmail.com
“Correlation” measures
Tal.Galili@gmail.com
“Correlation” measures
Tal.Galili@gmail.com
dendextend
in the wild
Tal.Galili@gmail.com
Visually comparing two clustering methods
Tal.Galili@gmail.com
A plot from a recent HBP meeting in Lausanne
Dendrogram
Using 2
variables
Dendrogram
Using all
variables
Tal.Galili@gmail.com
Visually comparing two phylogenic trees
Tal.Galili@gmail.com
Send a dendrogram to d3heatmap
http://asbcllc.com/blog/ 2015_abn/enuj/14_15_pot_50lmth.xedni/pamtaeh_
Tal.Galili@gmail.com
The dendextend package
Thank you!
for the slides:
R-statistics.com

Weitere ähnliche Inhalte

Mehr von Tal Galili

Will There Be A New Dawn For Tau
Will There Be A New Dawn For TauWill There Be A New Dawn For Tau
Will There Be A New Dawn For TauTal Galili
 
Info2008 Talgalili Presentation
Info2008 Talgalili PresentationInfo2008 Talgalili Presentation
Info2008 Talgalili PresentationTal Galili
 
Gonsalves Magic Reality
Gonsalves  Magic RealityGonsalves  Magic Reality
Gonsalves Magic RealityTal Galili
 
מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21
מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21 מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21
מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21 Tal Galili
 
How To Use A Wiki Editing A Page
How To Use A Wiki   Editing A PageHow To Use A Wiki   Editing A Page
How To Use A Wiki Editing A PageTal Galili
 
How To Use A Wiki Creatign A User Name
How To Use A Wiki   Creatign A User NameHow To Use A Wiki   Creatign A User Name
How To Use A Wiki Creatign A User NameTal Galili
 
University Faculty S T R I K E December 24 Optimized
University  Faculty  S T R I K E  December 24 OptimizedUniversity  Faculty  S T R I K E  December 24 Optimized
University Faculty S T R I K E December 24 OptimizedTal Galili
 
Why Are We On Strike
Why Are We On StrikeWhy Are We On Strike
Why Are We On StrikeTal Galili
 
Mesibat Itonaim
Mesibat ItonaimMesibat Itonaim
Mesibat ItonaimTal Galili
 
a simple what is wordpress
a simple what is wordpressa simple what is wordpress
a simple what is wordpressTal Galili
 

Mehr von Tal Galili (20)

Avir Naki Law
Avir Naki LawAvir Naki Law
Avir Naki Law
 
Will There Be A New Dawn For Tau
Will There Be A New Dawn For TauWill There Be A New Dawn For Tau
Will There Be A New Dawn For Tau
 
Julianbeever1
Julianbeever1Julianbeever1
Julianbeever1
 
Info2008 Talgalili Presentation
Info2008 Talgalili PresentationInfo2008 Talgalili Presentation
Info2008 Talgalili Presentation
 
Gonsalves Magic Reality
Gonsalves  Magic RealityGonsalves  Magic Reality
Gonsalves Magic Reality
 
Friendfeed
FriendfeedFriendfeed
Friendfeed
 
Government2
Government2Government2
Government2
 
מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21
מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21 מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21
מדיניות הצמצום התקציבי של ממשלות ישראל במאה ה-21
 
How To Use A Wiki Editing A Page
How To Use A Wiki   Editing A PageHow To Use A Wiki   Editing A Page
How To Use A Wiki Editing A Page
 
How To Use A Wiki Creatign A User Name
How To Use A Wiki   Creatign A User NameHow To Use A Wiki   Creatign A User Name
How To Use A Wiki Creatign A User Name
 
University Faculty S T R I K E December 24 Optimized
University  Faculty  S T R I K E  December 24 OptimizedUniversity  Faculty  S T R I K E  December 24 Optimized
University Faculty S T R I K E December 24 Optimized
 
Why Are We On Strike
Why Are We On StrikeWhy Are We On Strike
Why Are We On Strike
 
Yeda Ve Kesef
Yeda Ve KesefYeda Ve Kesef
Yeda Ve Kesef
 
Hinuch Tov
Hinuch TovHinuch Tov
Hinuch Tov
 
Mesibat Itonaim
Mesibat ItonaimMesibat Itonaim
Mesibat Itonaim
 
Oz le tmora
Oz le tmoraOz le tmora
Oz le tmora
 
Smartota
SmartotaSmartota
Smartota
 
Knesset2008
Knesset2008Knesset2008
Knesset2008
 
a simple what is wordpress
a simple what is wordpressa simple what is wordpress
a simple what is wordpress
 
Segel
SegelSegel
Segel
 

Kürzlich hochgeladen

Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...kumargunjan9515
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfSayantanBiswas37
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxchadhar227
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...Health
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...HyderabadDolls
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 

Kürzlich hochgeladen (20)

Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdf
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 

2015 06-27 use-r2015_dendextend_tal_galili_01