Efficiently plotting hundreds of millions of points in R
I've recently discovered the Scattermore package for R which is about an order of magnitude faster than R's standard plot function. scattermoreplot()
takes ~2 minutes to plot 100m points with colour and transparency, while plot()
takes around half an hour.
I am currently exploring datashader (http://www.datashader.org). If you are willing to work with python, this could be an elegant solution to the problem.
Maybe geom_hex() from the ggplo2 package can be a solution?https://ggplot2.tidyverse.org/reference/geom_hex.html