Skip to main content
100%

Gist 4063106

✓ Published0🌍 Public
Aandrewxhill
Last edited Nov 13, 2012
Created on Nov 13, 2012

This example visualizes the density distribution of bicycle data from the `table_2007_2009_bicy` dataset, dividing points into five quantile-based buckets. It shows how the maximum point count and density vary across these buckets, revealing spatial clustering patterns. The SQL code uses CartoDB functions such as `st_snaptogrid` and `CDB_XYZ_Resolution` to aggregate points into grid cells at a given zoom level, then calculates density per cell and assigns quartiles via `ntile(5)`. The final output summarizes each bucket’s maximum values, providing a statistical overview of the underlying geographic data.

AI-generated description

Similar vizzes