Learn R Programming

If you are using a version of d3heatmap older than 0.4.0, please upgrade now! Previous versions put row and column names in the incorrect order!


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

Example

http://rpubs.com/jcheng/mtcars-heatmap

Installation

To install:

if (!require("devtools")) install.packages("devtools")
devtools::install_github("rstudio/d3heatmap")

Usage

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

library(d3heatmap)
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.

Copy Link

Version

Install

install.packages('d3heatmap')

Monthly Downloads

63

Version

0.6.1.2

License

GPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 1st, 2018

Functions in d3heatmap (0.6.1.2)

d3heatmap

D3 Heatmap widget
d3heatmapOutput

Wrapper functions for using d3heatmap in shiny