Re: [R] image 256 x 920 data points too slow

2007-10-21 Thread baptiste Auguié
Thanks, it works nicely. In the meantime, I came across a similar approach taken in the documentation of ggplot2, using a small sample of the diamonds data. Thanks all again, baptiste On 21 Oct 2007, at 12:25, Katharine Mullen wrote: > I'm not aware of any existing function that does what y

Re: [R] image 256 x 920 data points too slow

2007-10-21 Thread jim holtman
Take a looks at the 'hexbin' package on BioConductor. It may give you want you want. On 10/21/07, baptiste Auguié <[EMAIL PROTECTED]> wrote: > Dear R gurus, > > I'm trying to visualize a matrix 256 x 920 using image(), but i find > the display too slow (~ 1 minute –– admittedly, my iBook G4 isn't

Re: [R] image 256 x 920 data points too slow

2007-10-21 Thread Katharine Mullen
I'm not aware of any existing function that does what you want, but you could easily write a function to sample from x, y, z, and then pass the sampled values to image. e.g., sam <- function(sx,sy,x,y,z){ xind<-seq(1,length(x),by=sx) yind<-seq(1,length(y),by=sy) samplex<-x[xind] sampley<-y

[R] image 256 x 920 data points too slow

2007-10-21 Thread baptiste Auguié
Dear R gurus, I'm trying to visualize a matrix 256 x 920 using image(), but i find the display too slow (~ 1 minute –– admittedly, my iBook G4 isn't very fast). The aim is not to get a good resolution image, but rather have a quick look at the matrix. I couldn't find a way to plot a smalle