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.

(more…)

Thursday, 9 August 2018

tweets


Twitter: frbailo

links


blogroll


RSS r-bloggers.com

  • GooglyPlusPlus gets ready for ICC Men’s T20 World Cup
    It is time!! So last weekend, I turned the wheels, moved the levers and listened to the hiss of steam, as I cranked up my Shiny app GooglyPlusPlus. The ICC Men’s T20 World Cup is just around the corner, and it was time to prepare for this event. This ... Continue reading: GooglyPlusPlus gets ready […]
  • Applications open: The Seventh Summer School on Statistical Methods for Linguistics and Psychology, 11-15 September 2023
    Applications are open (till 1st April 2023( for the seventh summer school on statistical methods for linguistics and psychology, to be held in Potsdam, Germany.Summer school website: https://vasishth.github.io/smlp2023/Some of the highlights:&nbsp... Continue reading: Applications open: The Seventh Summer School on Statistical Methods for Linguistics and Psychology, 11-15 September 2023
  • Package dev with {fusen} & {attachment}: load all functions of a flat, manage qmd and auto-fill Remotes field
    You can read the original post in its original format on Rtask website by ThinkR here: Package dev with {fusen} & {attachment}: load all functions of a flat, manage qmd and auto-fill Remotes field One aim of our open-source packages at ThinkR is to make our development workflows easier. {attachment} and {... Continue reading: Package […]
  • Get Miles: using treemap to visualise running distances
    By 30th September 2022, I had clocked up a total of over 2000 km of running in 2022. This milestone was a good opportunity to look at how I got to this point. The code is shown below. First, we can make a histogram to look at the distance of runs. From this ... Continue […]
  • ggradar: radar plots with ggplot in R
    Businesses have tons of data. But 90% have no clue how to use it. Here’s what they are overlooking… Within-Group Analysis. Groups are important (think customer segments). But group-wise comparisons can be tricky. Thankfully an R package exists to hel... Continue reading: ggradar: radar plots with ggplot in R

RSS Simply Statistics

RSS Statistical Modeling, Causal Inference, and Social Science

  • (Now that faculty aren’t coming into the office anymore) Will universities ever recover?
    A few years ago I taught a course at Sciences Po in Paris. The classes were fine, the students were fine, but there was almost no academic community. I had an office in some weird building where they stuck visitors. … Continue reading →
  • What Nested R-hat teaches us about the classical R-hat
    (this post is by Charles) My colleagues Matt Hoffman, Pavel Sountsov, Lionel Riou-Durand, Aki Vehtari, Andrew Gelman, and I released a preprint titled “Nested R-hat: assessing the convergence of Markov chains Monte Carlo when running many short chains”. This is … Continue reading →
  • Not frequentist enough.
    I think that many mistakes in applied statistics could be avoided if people were to think in a more frequentist way. Look at it this way: In the usual way of thinking, you apply a statistical procedure to the data, … Continue reading →