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
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
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
Hello R-users,
I am trying to do an image plot where I have been given latitudes,
longitudes and the values at the corresponding locations. A sample of the
data is given as follows:
values=c(0,1,0,0,0,0,2,2,0,0)
lat=c(29.6660,29.6756,29.3492,29.2654,29.2827,29.4070,35.3510,35.6590,35.7587,38.2
4 matches
Mail list logo