【发布时间】:2016-07-29 16:25:29
【问题描述】:
是否有可能删除树状图并保持行名和列名的排序,就像它与 dendrogram = 'both' 一样?
例如
d3heatmap(mtcars, colors = 'Blues')
d3heatmap(mtcars, dendrogram = 'none', colors = 'Blues')
两个输出看起来不同,但我想得到与第一个示例相同的图,但没有树状图。有可能吗?
【问题讨论】:
是否有可能删除树状图并保持行名和列名的排序,就像它与 dendrogram = 'both' 一样?
例如
d3heatmap(mtcars, colors = 'Blues')
d3heatmap(mtcars, dendrogram = 'none', colors = 'Blues')
两个输出看起来不同,但我想得到与第一个示例相同的图,但没有树状图。有可能吗?
【问题讨论】:
试试这个:
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
【讨论】: