r2d3 (version 1.0)

D3XtabHeat: D3 XtabHeat

Description

Creates a html file containing json file and a D3.js Cross tab Heat map. The nested json needs values assigned to it in order for it to work

Usage

D3XtabHeat(JSON, file_out)

Arguments

JSON
A json object
file_out
the location and name for the output html file

References

http://bl.ocks.org/tjdecke/5558084

Examples

Run this code
data<-data.frame(airquality$Month, airquality$Temp)
json<-jsonXtabs(data)
D3XtabHeat(json, file_out="heat_map.html")

Run the code above in your browser using DataCamp Workspace