Below is a simple R program for reading NBA player statistics off of an internet site, rearranging the data and plotting it as a d3 heatmap.