hadley/ggplot2 — pull request #1008 by jiho (2014-09-11 10:22:45+00:00)
Title: Add a fortify method for x,y,z type lists

Those lists are standard but do not have a specific class. There is no way to
make have this method be called on these lists only but great care is taken to
check that the list is indeed well formed before proceeding with the
conversion.

Many functions producing 2D results (interpolation, re-griding of spatial
data, heatmaps, etc.) produce such x, y, z lists because they are directly
plot-able with image() or persp(). This method makes it easy to use ggplot
straight on the output of such functions.