【问题标题】:d3heatmap - dendrogram row names and colnames without dendrogram plotd3heatmap - 没有树状图的树状图行名和列名
【发布时间】:2016-07-29 16:25:29
【问题描述】:

是否有可能删除树状图并保持行名和列名的排序,就像它与 dendrogram = 'both' 一样?

例如

d3heatmap(mtcars, colors = 'Blues')


d3heatmap(mtcars, dendrogram = 'none', colors = 'Blues')

两个输出看起来不同,但我想得到与第一个示例相同的图,但没有树状图。有可能吗?

【问题讨论】:

    标签: r d3heatmap


    【解决方案1】:

    试试这个:

    a <- d3heatmap(mtcars,  dendrogram = 'both', colors = 'Blues')
    b <- d3heatmap(mtcars,  dendrogram = 'none', colors = 'Blues')
    b$x$matrix <- a$x$matrix
    b$x$image  <- a$x$image
    b
    

    【讨论】:

      猜你喜欢
      • 2016-10-26
      • 1970-01-01
      • 1970-01-01
      • 2017-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-14
      • 2020-06-06
      相关资源
      最近更新 更多