[R] question on image() function?

2007-11-08 Thread zhijie zhang
Dear friends, My dataset is like the following: xy mcpvalue 0.4603578 0.6247629 1.001 0.4603715 0.62477881.001 0.4603852 0.6247948 1.001 0.4110561 0.5664841 0.995 The x and y variables are unsorted. I use the

Re: [R] question on image() function?

2007-11-08 Thread Duncan Murdoch
On 11/8/2007 11:51 AM, zhijie zhang wrote: Dear friends, My dataset is like the following: xy mcpvalue 0.4603578 0.6247629 1.001 0.4603715 0.62477881.001 0.4603852 0.6247948 1.001 0.4110561 0.5664841 0.995

Re: [R] question on image() function?

2007-11-08 Thread Luke Spadavecchia
You could try using levelplot from the lattice package: library(lattice) levelplot(mcpvalue~x+y) failing that, interpolate them to a grid using akima or fields then display with image L On 8 Nov 2007, at 18:13, Duncan Murdoch wrote: On 11/8/2007 11:51 AM, zhijie zhang wrote: Dear friends,