Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

A series of unfortunate maps, and how to fix them

157 views

Published on

Three examples of how to improve your visualizaiton of geospatial data using different techniques.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

A series of unfortunate maps, and how to fix them

  1. 1. A SERIES OF UNFORTUNATE MAPS AND HOW TO FIX THEM WITH CARTO BUILDER SUPPORT TEAM MANAGER & SOLUTIONS ENGINEER JORGE SANZ - jorge@carto.com
  2. 2. HOW TO VISUALIZE ALL NON-DOMINANT CATEGORIES FROM A 10M DATASET
  3. 3. PROBLEMS 1. COUNT(*) = 9,855,420 2. COUNT(DISTINCT category) = 294 3. COUNT(*) WHERE category ~* ‘telefonica’ = 4,141,712 4. Row order
  4. 4. Density map with a 30 % subsample and screen blending v0
  5. 5. Category map with a 30 % subsample v 1
  6. 6. ORDERING 1. Normalize categories. 2. Create a simple table like this one: 3. JOIN the original dataset with this new table, using the category column as foreign key. 4. ORDER the table by category column setting ASC in order to show the categories with less rows first. category order telefonica 1 vodafone 2 orange 3 yoigo 4 other 5
  7. 7. STYLING You can change marker opacity to change the visual prominence of a category Markers on top can be more transparent than the ones at the bottom
  8. 8. HOW TO SHOW MANY POINTS THAT SHARE THE SAME LOCATION
  9. 9. PROBLEMS 1. POINTS SHARING SAME LOCATION 2. NO INTERACTIVITY
  10. 10. HEATMAP SPIDERINGCLUSTERING
  11. 11. STACKING CHIPS 1. PostGIS: ● GROUP BY the_geom ● ORDER BY y-axis ● Generate p value 2. CartoCSS (or Javascript): ● Translate ● Offset based on zoom level
  12. 12. JSON on SQL and loops on popups AGGREGATING POINTS 1. Aggregate one field: ● json_agg() 2. Aggregate several fields: ● json_agg(row_to_json())
  13. 13. HOW TO SYMBOLIZE DIFFERENT ATTRIBUTES ON THE SAME LAYER GEOMETRY
  14. 14. PROBLEMS 1. TOO MANY VARIABLES WITHOUT HIERARCHY 2. SAME LAYER GEOMETRY
  15. 15. Tools to filter data in real-time to identify trends & relationships WIDGETS
  16. 16. Visualize the multi-dimensional nature of your data in real-time AUTO-STYLE
  17. 17. TURBO CARTO
  18. 18. polygon-fill: ramp([masters_degree],cartocolor(PurpOr),quantiles(5)); Thematic map styling with a single line of code TURBO CARTO [masters_degree <= 0.451523545706371] {polygon-fill: #6c2167;} [masters_degree <= 0.200426439232409] {polygon-fill: #a24186;} [masters_degree <= 0.137369033760186] {polygon-fill: #ca699d;} [masters_degree <= 0.0843373493975904] {polygon-fill: #e498b4;} [masters_degree <= 0.0418410041841004] {polygon-fill: #f3cbd3;}
  19. 19. Designed specifically for use with CARTO basemaps or not... CARTO COLORS
  20. 20. Data driven color schemes CARTO COLORS SEQUENTIAL DIVERGING QUALITATIVE
  21. 21. CONCLUSIONS
  22. 22. SUPPORT TEAM MANAGER & SOLUTIONS ENGINEER THANKS! A SERIES OF UNFORTUNATE MAPS http://bit.ly/170719-unfortunate-maps JORGE SANZ - jorge@carto.com

×