Reproducing lattice dendrogram graph with ggplot2

前端 未结 4 1302
一个人的身影
一个人的身影 2020-11-28 21:49

Is this possible to reproduce this lattice plot with ggplot2?

library(latticeExtra)
data(mtcars)
x  <- t(as.matrix(scale(mtcars)))
dd.row <- as.dendrog         


        
4条回答
  •  情话喂你
    2020-11-28 22:20

    Doubtful. I do not see any functions in the Index for ggplot2 that would suggest support for dendrograms, and when this blogger put together a set of translations of the illustrations in Sarkar's Lattice book, he was unable to get a ggplot dendrogram legend:

    http://learnr.wordpress.com/2009/08/10/ggplot2-version-of-figures-in-lattice-multivariate-data-visualization-with-r-part-9/

提交回复
热议问题