I tried to make an animated map in R with tmap package, like here https://geocompr.robinlovelace.net/adv-map.html#animated-maps

I tried to find the code for the animated map presented in section [8.3 Animated maps] from the link but I have not find it. Where is the code for this map?


1 Answer 1


You can find the code from each chapter at https://github.com/Robinlovelace/geocompr/tree/master/code/chapters. The code for the first animation is at https://github.com/Robinlovelace/geocompr/blob/master/code/08-urban-animation.R, and for the second one at https://github.com/Robinlovelace/geocompr/blob/master/code/08-usboundaries.R.

  • Thank you very much for the clarification. I found the code! Mar 31, 2019 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.