Skip to content

Commit 99f82c8

Browse files
committed
Final touches to c9 - finished for now
1 parent b92af75 commit 99f82c8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ urb_anim.gif
3636
09-us_pop.gif
3737
spDataLarge*
3838
geocompr/
39+
m.gif
40+
animation.gif

09-mapping.Rmd

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,15 @@ tm_shape(eastern_africa) +
979979
```{r, eval=FALSE, echo=FALSE}
980980
m = tm_shape(eastern_africa) +
981981
tm_polygons(col = c("HDI", "pop_growth")) +
982-
qtm(africa, fill = NULL)
983-
tmap_animation(m)
982+
qtm(africa, fill = NULL) +
983+
tm_facets(ncol = 1, nrow = 1)
984+
tmap_animation(m, filename = "m.gif")
985+
browseURL("m.gif")
986+
m = tm_shape(eastern_africa) +
987+
tm_polygons("pop_growth", style = "jenks", palette = "BuPu") +
988+
tm_facets(by = "name", showNA = FALSE, ncol = 1, nrow = 1)
989+
tmap_animation(m, filename = "m.gif")
990+
browseURL("m.gif")
984991
```
985992
1. Create an interactive map of Africa:
986993
- with **tmap**

0 commit comments

Comments
 (0)