The last two weeks of #tidytuesday have both involved data that can be spatially mapped. They were a good opportunity to get more familiar with showing information on states in the US or countries in Europe.
Alternative fuel sources in the US
The data for 2022-03-01 are fueling stations throughout the US that offer alternatives to gasoline or diesel. I used the usmap
package to help plot this one:
Code for this graphic is here
Erasmus exchange program
The data for 2022-03-08 come from the Erasmus+ exchange program. It allows students to travel to other countries. I decided to look at which countries received more students than they sent away. I used the sf
and rnaturalearth
packages for this one.
I wanted to help adjust for differences in the total number of students who travel each year, so I normalized by the total number of students before subtracting exports
from imports
.
Code for this graphic is here