A D3.js-based heatmap htmlwidget for R
HTML R JavaScript CSS
Clone or download
jcheng5 Remove tests
For some reason these are failing on BDR's machine(s).
Latest commit 5092396 Jan 19, 2018


d3heatmap is not actively maintained. You might consider using a newer heatmap package like heatmaply.

D3 Heatmap for R

This is an R package that implements a heatmap htmlwidget. It has the following features:

  • Highlight rows/columns by clicking axis labels
  • Click and drag over colormap to zoom in (click on colormap to zoom out)
  • Optional clustering and dendrograms, courtesy of base::heatmap




To install:

if (!require("devtools")) install.packages("devtools")


Like any htmlwidget, you can visualize a d3 heatmap directly from the R console:

d3heatmap(mtcars, scale = "column", colors = "Spectral")

You can also include them in R Markdown chunks, or use them in Shiny applications with the d3heatmapOutput and renderD3heatmap functions.

See ?d3heatmap for options.