Skip to content

Homeward Bound #2

@monacoba

Description

@monacoba

https://tidy-mn.github.io/R-camp-penguins/page/exercise/day5/5_homeward_bound.html

LJ Panas

For the CRS sheet, you might try to adjust the size or have a clickable link or make a note that you can right click to save down the PDF.

In the current order, the orange line in the leaflet (leaflet_2.2.0) plot appears under the blue state borders and the light blue state fill for me, so it kind of washes out in the background. Not sure if that is the same output as on your end.
If I reverse the call order it moves the line over top and it is a little clearer.

leaflet() %>%
addTiles() %>%
addPolygons(data = bird_route_states) %>%
addPolygons(data = tree_route, weight = 8, fillColor = 'darkorange', color = 'darkorange')

The highlighted label = NAME in the aes is not valid for the geom_sf (ggplot2_3.4.4) and is ignored by R:
ggplot() +
geom_sf(data = bird_route_states, aes(fill = NAME, label = NAME)) +
geom_sf_text(data = bird_route_states, aes(label = NAME)) +
geom_sf(data = tree_route, aes(fill = route), size = 10) +
theme(legend.position = "none")

Mark Lee

Exercise Frustration Level Enjoyability Usefulness Time to complete Learn anything?
Homeward bound (sf, tigris, and leaflet) 0/10 easy to follow along 7/10 making maps is intrinsically fun so hard to go wrong 3/10 maybe I’m biased, but I don’t think this exercise is going to translate to most of the mapping problems that people in MDH are trying to solve. I think a more useful exercise would be to merge county-level health data with MN county shapefiles and make a simple map of something like obesity by county. Also, even though all the code worked, I did not feel like I learned enough about what I was doing to apply it to other situations. It was a bit too complex. 15 minutes I don’t usually do mapping, so the sf, tigris, and leaflet packages are all new to me. It was cool to see them in action!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions