How to (quickly) enrich a map with natural and anthropic details

In this post I show how to enrich a ggplot map with data obtained from the Open Street Map (OSM) API. After adding elevation details to the map, I add water bodies and elements identifying human activity. To highlight the areas more densely inhabitated, I propose to use a density-based clustering algorithm of OSM features.


Thursday, 9 August 2018


Twitter: frbailo




RSS Simply Statistics

RSS Statistical Modeling, Causal Inference, and Social Science

  • Hedging your bets by weighting regressions?
    Cody Boyer writes: I’ve had a question in the back of my mind since I read this article years ago. What I’m curious about is this section, quoted below: A major challenge is that there are a lot of plausible … Continue reading →
  • Prior knowledge elicitation: The past, present, and future
    Petrus Mikkola, Osvaldo A. Martin, Suyog Chandramouli, Marcelo Hartmann, Oriol Abril Pla, Owen Thomas, Henri Pesonen, Jukka Corander, Aki Vehtari, Samuel Kaski, Paul-Christian Bürkner, and Arto Klami write in a paper that recently appeared online in Bayesian Analysis journal Specification … Continue reading →
  • Incompetence or fraud hidden in plain sight
    We’ve been hearing a lot about the colorful con artist George Santos, who was recently elected to the U.S. Congress. One news story asks: Why, people keep asking, did it take so long for his lies to be revealed? Why … Continue reading →