Gist 8bd1d36a9319f79fcf719eda3682b1d1
✓ Published0🌍 Public
RRCura
Last edited Jan 3, 2017
Created on Jan 3, 2017
This example visualizes 500,000 randomly generated geographic points centered on Paris as a density heatmap. The code uses the `leaflet` package with the `addHeatmap` function to render the distribution, displaying points over a CartoDB DarkMatter tile layer. Data is synthesized using `rnorm` and sampled into smaller sets with `dplyr`’s `sample_n`. The visualization shows how a large point cloud condenses into a bright core with fading edges, demonstrating leaflet’s heatmap capabilities for large datasets.
AI-generated description