How to adjust sizes of x-axis in dendrogram (R)?

前端 未结 1 596
南笙
南笙 2021-01-13 19:27

I would like to adjust the x-axis in a dendrogram where all the labels are seen, for large data sets. As example, I use iris data here:

    > iris.data=su         


        
相关标签:
1条回答
  • 2021-01-13 20:04

    Like @Roman Luštrik said : You can do like this :

      png("plotdendogram.png",width=1600,height=800)
    
      par(cex=1,font=3)
      plot(hc, hang=-1, main="Dendrogram of Ward's Method", label=iris$Species)
    
      dev.off()
    

    You will be able to view species' names, although in small font size. Hope this helps.

    0 讨论(0)
提交回复
热议问题