[R] shrink a dataframe for plotting
jim holtman
jholtman at gmail.com
Wed Nov 21 16:57:48 CET 2007
Try 'hexbin' for plotting this many points.
On Nov 21, 2007 5:05 AM, Alexy Khrabrov <alexy.khrabrov at gmail.com> wrote:
> I get tables with millions of rows. For plotting to a screen-size
> jpg, obviously just about 1000 points are enough. Instead of feeding
> plot() the original millions of rows, I'd rather shrink the original
> dataframe, using some kind of the following interpolation:
>
> -- split dataframe into chunks of N rows each, e.g. 1000 rows each
> -- compute average for each column
> -- issue one new row of those averages into the shrunk result
>
> Is there any existing package to do that in R? Otherwise, which R
> idioms are most effective to achieve that?
>
> Cheers,
> Alexy
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list