talgalili / d3heatmap

A D3.js-based heatmap htmlwidget for R
Other
236 stars 93 forks source link

colRow ignored and labRow ignored if Rowv is given as a dendrogram #51

Open stanstrup opened 8 years ago

stanstrup commented 8 years ago

colRow not used.

d3heatmap(mtcars, scale="column", colors="Blues",labRow=as.character(mtcars$mpg),colRow=paste0(colnames(mtcars),"_test") )

labRow also ignored.

hcl_row <- as.dendrogram(hclust(dist(mtcars)))
hcl_col <- as.dendrogram(hclust(dist(t(mtcars))))

d3heatmap(mtcars, Rowv = hcl_row,Colv = hcl_col, scale="column", colors="Blues",labRow=as.character(mtcars$mpg),colRow=colnames(paste0(mtcars,"_test")))
aidanmacnamara commented 8 years ago

Seconded.