fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Lincoln :fosstodon: :rstats:

For this week's , I decided to play with choropleth maps! Mapping is something I'm still getting used to in but I think I got this one done pretty well. The shapefile for the NYC boroughs came from data.cityofnewyork.us/City-Gov
@rstats @R4DSCommunity

The Rmd file for this week is at github.com/ldanderson2015/tidy

@rstats @R4DSCommunity

Also if anyone has any suggestions for a good way of arranging these plots which preserves the size well enough that the labels don't completely overshadow the map polygons, it would be much appreciated. I tried to use facet_grid/facet_wrap and then grid.arrange() but each had their own set of problems...

@rstats @R4DSCommunity

Thank you to @johannes_lehmann and @LeafyEricScott! I was able to use patchwork (and some additional tidying of the data) to make this visualization a bit more useful!

@rstats @R4DSCommunity @johannes_lehmann @LeafyEricScott

And now the final result! This has been a good learning experience and exactly what I was hoping for when I started interacting with this community!

@johannes_lehmann @deaconlincoln I second using patchwork, but I'd make the sub-plots all have the same color scale and use plot_layout(guides="collect") so there's only one legend for all the subplots

@LeafyEricScott @rstats @R4DSCommunity @johannes_lehmann

I’m also considering adding a sixth map as a “key” of sorts for the boroughs for those unfamiliar (like me) and removing the labels from the others.

@LeafyEricScott @rstats @R4DSCommunity @johannes_lehmann that’s my thinking too! I will do that and then consider this week done. Thank you again for the input and inspiration 😁