aloy / qqplotr

Extending some ggplot2 functionalities by permitting the drawing of both quantile-quantile (Q-Q) and probability-probability (P-P) points, lines, and confidence bands
https://aloy.github.io/qqplotr/
GNU General Public License v3.0
51 stars 8 forks source link

Attempt at downsampling qq-plot number of points. #10

Open jdstamp opened 2 years ago

jdstamp commented 2 years ago

PR draft for Issue #9. I was trying to introduce downsampling but I did not get it to work.

Problem: I am trying to create qqplots from ~2mio. p-values. The resulting pdf file takes very long to load. The resulting tikz picture file is too large for overleaf (383M).

What I was trying to do:

  1. Preserve the overall shape of the plot
  2. Reduce the number of points included in the plot

My idea was to drop points that are close to a point that I am looking at and hence don't add much information in the qqplot.

Currently, trying to use the code on my large data set just gets stuck.