Add heatmap plotting function. Closes #1.