Heatmaps in R based on grid graphics