[R] image plot but data not on grid.
Hadley Wickham
hadley at rice.edu
Sat Aug 7 15:58:06 CEST 2010
On Sat, Aug 7, 2010 at 2:54 AM, Michael Bedward
<michael.bedward at gmail.com> wrote:
> On 7 August 2010 06:26, Hadley Wickham wrote:
>
>> library(ggplot2)
>> qplot(x, y, fill = z, data = df, geom = "tile")
>
> Hi Hadley,
>
> I read the original question as being about irregularly spaced data.
> The above method doesn't seem to for me in such a case but perhaps I'm
> constructing my example incorrectly.
If it's regular, but incomplete, that method will work. If it's
irregular, then no image method will work without first interpolating
a regular grid.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-help
mailing list