Re: [R] Drawing a histogram from a massive dataset

2011-07-19 Thread Paul Smith
On Tue, Jul 19, 2011 at 12:30 AM, Joshua Wiley wrote: [snip] I guess that I must have a data frame to plot a histogram. >>> >>> Not at all! >>> >>> ## a *vector* of 100 million observation >>> x <- rnorm(10^8) >>> ## a histogram for it (see attached for the result from my system) >>> hist(x)

Re: [R] Drawing a histogram from a massive dataset

2011-07-18 Thread Joshua Wiley
On Mon, Jul 18, 2011 at 2:08 PM, Paul Smith wrote: > On Mon, Jul 18, 2011 at 9:11 PM, Joshua Wiley wrote: >>> [snip] I guess that I must have a data frame to plot a histogram. >> >> Not at all! >> >> ## a *vector* of 100 million observation >> x <- rnorm(10^8) >> ## a histogram for it (see attach

Re: [R] Drawing a histogram from a massive dataset

2011-07-18 Thread Paul Smith
On Mon, Jul 18, 2011 at 9:11 PM, Joshua Wiley wrote: >> [snip] I guess that I must have a data frame to plot a histogram. > > Not at all! > > ## a *vector* of 100 million observation > x <- rnorm(10^8) > ## a histogram for it (see attached for the result from my system) > hist(x) > > No data frame

Re: [R] Drawing a histogram from a massive dataset

2011-07-18 Thread Joshua Wiley
On Mon, Jul 18, 2011 at 10:57 AM, Paul Smith wrote: > [snip] I guess that I must have a data frame to plot a histogram. Not at all! ## a *vector* of 100 million observation x <- rnorm(10^8) ## a histogram for it (see attached for the result from my system) hist(x) No data frame required. I wou

Re: [R] Drawing a histogram from a massive dataset

2011-07-18 Thread Paul Smith
Thanks, Dennis, for your suggestions. I was thinking about the package 'sqldf', but I guess that I must have a data frame to plot a histogram. Paul On Fri, Jul 15, 2011 at 4:15 PM, Dennis Murphy wrote: > I would suggest that you avoid the histogram and make a density plot > instead. It would be

[R] Drawing a histogram from a massive dataset

2011-07-15 Thread Kyaw Sint (Joe)
Hello, I assume you have imported the dataset. You can use the hist from the graphics package from the main R program. A tricky part is that the freq=TRUE (the default) plots frequencies and freq=FALSE plots probability densities, not percent of the histogram cells. You can sum the counts and calc

Re: [R] Drawing a histogram from a massive dataset

2011-07-15 Thread Dennis Murphy
Hi: I would suggest that you avoid the histogram and make a density plot instead. It would be more informative and probably require a lot less time and ink. If you're married to the histogram concept, try taking a sample of about 1 and get a histogram of that instead. The result shouldn't be m

[R] Drawing a histogram from a massive dataset

2011-07-15 Thread Paul Smith
Dear All, I have a massive dataset from which I would like to draw a histogram. Any ideas on how to accomplish this? Thanks in advance, Paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g