I'm new to R and am trying to perform a simple, yet problematic task. I have two variables for which I would like to measure the correlation and plot versus each other. However, I have ~30 million data points measurements of each variable. I can read this into R from file and produce a plot with plot(x0, x1) but as you would expect, its not pretty to look at and produces a postscript file of about 700MB. A google search found a few mentions of doing density plots but they seemed to assume you already have the density matrix. Can anyone point me in the right direction, keeping in mind that I am a complete R newbie. Obi
You might want to try hexbin (hexagonal binning) in the BioConductor suite (see www.bioconductor.org). HTH, Andy> From: Obi Griffith > > I'm new to R and am trying to perform a simple, yet > problematic task. I > have two variables for which I would like to measure the > correlation and > plot versus each other. However, I have ~30 million data points > measurements of each variable. I can read this into R from file and > produce a plot with plot(x0, x1) but as you would expect, its > not pretty > to look at and produces a postscript file of about 700MB. A google > search found a few mentions of doing density plots but they seemed to > assume you already have the density matrix. Can anyone point > me in the > right direction, keeping in mind that I am a complete R newbie. > > Obi------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments,...{{dropped}}
Have you tried the 'sm.density' function from the sm library? I used it for a dataset which 'only' had 130000 points.> I'm new to R and am trying to perform a simple, yet > problematic task. I > have two variables for which I would like to measure the > correlation and > plot versus each other. However, I have ~30 million data points > measurements of each variable. I can read this into R from file and > produce a plot with plot(x0, x1) but as you would expect, its > not pretty > to look at and produces a postscript file of about 700MB.Christophe Pallier http://www.pallier.org