Re: [R] problem with the image command

2013-04-09 Thread Pascal Oettli
Hello, In the case: image(x=long,y=lat,z=values)), "long" is not in (strictly) ascending order, according to the sample you provided: plot(long) Regards, Pascal On 04/10/2013 10:28 AM, cassie jones wrote: Yes, I did. But I get the following error with the command image(x=long,y=lat,z=val

Re: [R] problem with the image command

2013-04-09 Thread cassie jones
Yes, I did. But I get the following error with the command image(x=long,y=lat,z=values) "Error in image.default(x=long,y=lat,z=values): error in evaluating the argument 'x' in selecting a method for function 'image': Error in long: recursive indexing failed at level 2" Thanks, Cassie On Tue, A

Re: [R] problem with the image command

2013-04-09 Thread Pascal Oettli
Hi, Did you carefully read the help for "image" ? ## Default S3 method: image(x, y, z, zlim, xlim, ylim, col = heat.colors(12), add = FALSE, xaxs = "i", yaxs = "i", xlab, ylab, breaks, oldstyle = FALSE, useRaster, ...) Regards, Pascal On 04/10/2013 10:07 AM, cassie jones wrote: H