> Is this possible with ggplot2 as well?
you need to do the interpolation separately and then feed the data to
geom_tile.
I might be wrong, and Hadley will correct me, but ggplot is a
*plotting* package. This means, for me at least, that most computation
is done beforehand and that ggplot comes into play once you have a
data.frame filled with the data you want to represent. Even though
some statistical functions, such as smoothing, contouring,
manipulating scales etc. are directly available, ggplot is not a do-it-
all package in which you would feed the raw data and which would
output the graphics. So basically, I would recommend to use spastat
(or other interpolation packages: kriging, akima etc.) to compute
whatever you need, put that in a data.frame, and then start thinking
about ggplot.
From that point on, the manual and the website should allow you to
find the appropriate function easily (geom_tile is quite obvious in
the documentation).
JiHO
---
http://jo.irisson.free.fr/
Yes, that's exactly right :)
Hadley