Re: [R] Plotting function image

2012-02-15 Thread ilai
Inline On Wed, Feb 15, 2012 at 3:04 AM, uday wrote: > Hi , > > Thanks for reply > > My latitude and longitude contains 9-10 observations per file > when I run coords <- expand.grid(lat=1:5,long=1:5) then my computer > You don't have to run this part. As your original post did not provide

Re: [R] Plotting function image

2012-02-15 Thread Etienne B. Racine
Uday, maybe you could have a look at the raster package. Etienne 2012/2/15 uday > Hi , > > Thanks for reply > > My latitude and longitude contains 9-10 observations per file > when I run coords <- expand.grid(lat=1:5,long=1:5) then my computer > > *** caught segfault *** > address 0x695

Re: [R] Plotting function image

2012-02-15 Thread uday
Hi , Thanks for reply My latitude and longitude contains 9-10 observations per file when I run coords <- expand.grid(lat=1:5,long=1:5) then my computer *** caught segfault *** address 0x6951c20, cause 'memory not mapped' Traceback: 1: .C("spline_eval", z$method, nu = as.integer(n),

Re: [R] Plotting function image

2012-02-14 Thread ilai
In the absence of data coords <- expand.grid(lat=1:5,long=1:5) coords$z <- rnorm(25) Coords<- unstack(coords,z~long) image(as.matrix(Coords)) On Tue, Feb 14, 2012 at 10:36 AM, uday wrote: > I have some data set which has latitude, longitude and Z values. > I would like to plot them on global ma

[R] Plotting function image

2012-02-14 Thread uday
I have some data set which has latitude, longitude and Z values. I would like to plot them on global map. I am thinking to use image image(x, y, z, zlim, xlim, ylim, col = heat.colors(12), add = FALSE, xaxs = "i", yaxs = "i", xlab, ylab, breaks, oldstyle = FALSE, useRaster = FALSE, .