简体   繁体   English

d3heatmap-没有树状图的树状图行名和列名

[英]d3heatmap - dendrogram row names and colnames without dendrogram plot

Is there any possibility to delete dendrogram plot and remain ordering of rownames and colnames like it works with dendrogram = 'both' ? 是否有可能删除树状图,并保持行名和列名的顺序,就像它与dendrogram = 'both'

Eg 例如

d3heatmap(mtcars, colors = 'Blues')


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

Both outputs look different but I want to get the same plot as in the first example without dendrogram. 两种输出看起来都不同,但我想获得与第一个示例一样的图,而没有树状图。 Is it possible? 可能吗?

Try this: 尝试这个:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM