Skip to content

Commit

Permalink
Rmd requires a new blank line when listing
Browse files Browse the repository at this point in the history
  • Loading branch information
babayoshihiko committed Apr 22, 2024
1 parent 659632d commit a90984f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _09-ex.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ nlcd = rast(system.file("raster/nlcd.tif", package = "spDataLarge"))
```

E1. Create a map showing the geographic distribution of the Human Development Index (`HDI`) across Africa with base **graphics** (hint: use `plot()`) and **tmap** packages (hint: use `tm_shape(africa) + ...`).

- Name two advantages of each based on the experience.
- Name three other mapping packages and an advantage of each.
- Bonus: create three more maps of Africa using these three other packages.
Expand Down Expand Up @@ -85,6 +86,7 @@ tmap_arrange(ahdi, asubregions)
```

E4. Create a land cover map of the Zion National Park.

- Change the default colors to match your perception of the land cover categories
- Add a scale bar and north arrow and change the position of both to improve the map's aesthetic appeal
- Bonus: Add an inset map of Zion National Park's location in the context of the Utah state. (Hint: an object representing Utah can be subset from the `us_states` dataset.)
Expand Down Expand Up @@ -148,6 +150,7 @@ print(inset, vp = ins_vp)
```

E5. Create facet maps of countries in Eastern Africa:

- With one facet showing HDI and the other representing population growth (hint: using variables `HDI` and `pop_growth`, respectively)
- With a 'small multiple' per country

Expand All @@ -163,6 +166,7 @@ tm_shape(ea) +
```

E6. Building on the previous facet map examples, create animated maps of East Africa:

- Showing each country in order
- Showing each country in order with a legend showing the HDI

Expand All @@ -185,6 +189,7 @@ browseURL("tma2.gif")
```

E7. Create an interactive map of HDI in Africa:

- With **tmap**
- With **mapview**
- With **leaflet**
Expand All @@ -208,6 +213,7 @@ leaflet(africa4326) |>
```

E8. Sketch on paper ideas for a web mapping app that could be used to make transport or land-use policies more evidence based:

- In the city you live, for a couple of users per day
- In the country you live, for dozens of users per day
- Worldwide for hundreds of users per day and large data serving requirements
Expand All @@ -223,6 +229,7 @@ Worldwide, a database to serve the data would likely be needed. Then various fro
```

E9. Update the code in `coffeeApp/app.R` so that instead of centering on Brazil the user can select which country to focus on:

- Using `textInput()`
- Using `selectInput()`

Expand Down

0 comments on commit a90984f

Please sign in to comment.