Nicolabo
Nicolabo

Reputation: 1377

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'?

E.g.

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?

Upvotes: 0

Views: 325

Answers (1)

K.Daisey
K.Daisey

Reputation: 464

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

Upvotes: 1

Related Questions