The circular dendrogram of the ggraph library deserves its own page because it can be a bit tricky to adjust the labels. Indeed they need to have a good angle, be flipped upside down on the left part of the chart, and their alignment needs to be adjusted as well.

The following piece of code should allow you to display them correctly as shown beside. Note that the graph #334 gives the basis of dendrogram with ggraph, and that graph #335 presents a few possible customizations.

 

Related



1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Dong Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Dong
Guest
Dong

ggraph(mygraph, layout = ‘dendrogram’, circular = TRUE) gives the error “object of type ‘closure’ is not subsettable”