Re: [R] image() plot with z not in matrix format

2007-11-29 Thread Julian Burgos
Hello Marc, Well, image() requires data values in a regular grid. So you need to interpolate your data to a regular grid before you do your plot. There are many interpolation methods, but a good place to start is to do linear interpolation. You should first use expand.grid() to create the r

[R] image() plot with z not in matrix format

2007-11-29 Thread mdgi
Hello R cracks The image() function requires strictly increasing x and y values and z as a matrix. Actually, I don't have equally spaced variables, but anyway want to plot an colored image() (with z-information). An example of my problem is here: a<-data.frame(rnorm(100), rnorm(100), runif(10