Benchmarking leaflet.extras::addHeatmap vs leaflet.extras::addWebGLHeatmap
✓ Published0🌍 Public
RRCura
Last edited Feb 6, 2017
Created on Feb 6, 2017
This example benchmarks the performance of two Leaflet heatmap rendering methods, `addHeatmap` and `addWebGLHeatmap`, across point datasets of increasing size from 10,000 to 2 million points. Using R’s `microbenchmark` package, it compares the time to load pages containing these visualizations in the browser, with results showing the standard heatmap consistently outperforms the WebGL version for all tested dataset sizes. The rendered output uses Leaflet and the `leaflet.extras` package, with the analysis displayed via R markdown and `ggplot2`.
AI-generated description