New Map
ggplot(county_map_final) +
geom_sf(aes(fill= TOTAL_SHEEP_CALC))+
labs(title = 'Sheep Per County (Republic of Ireland)', subtitle= 'Donegal, Mayo, and Galway have the highest sheep populations.', caption = 'Data from the Irish Department of Agriculture, Food and the Marine,2021.')+
scale_fill_gradientn(name= '', colours = c("white", "limegreen", "darkgreen"))+
geom_text(aes(x=-6.8, label=paste0("Northern Ireland\n",'Not in the Republic of Ireland'), y=54.6), size= 1.8, color= 'white', fontface= "plain")+
theme_void()

finalmap <- ggplot(county_map_final) +
geom_sf(aes(fill= TOTAL_SHEEP_CALC))+
labs(title = 'Sheep Per County (Republic of Ireland)', subtitle= 'Donegal, Mayo, and Galway have the highest sheep populations.', caption = 'Data from the Irish Department of Agriculture, Food, and the Marine, 2021.')+
scale_fill_gradientn(name= '', colours = c("white", "limegreen", "darkgreen"))+
geom_text(aes(x=-6.8, label=paste0("Northern Ireland\n",'Not in the Republic of Ireland'), y=54.6), size= 1.8, color= 'white', fontface= "plain")+
theme_void()
ggsave(file = "g2.png", plot = finalmap, width = 3000, height = 2400, units = "px")
New Interactive Map
interactivemap <- ggplot(county_map_final) +
geom_sf_interactive(aes(fill= TOTAL_SHEEP_CALC, tooltip = c(paste0(COUNTY,"<br>", TOTAL_SHEEP_CALC))))+
labs(title = 'Sheep Per County (Republic of Ireland)', subtitle= 'Donegal, Mayo, and Galway have the highest sheep populations.', caption = 'Data from the Irish Department of Agriculture, Food, and the Marine, 2021.')+
scale_fill_gradientn(name= '', colours = c("white", "limegreen", "darkgreen"))+
geom_text(aes(x=-6.8, label=paste0("Northern Ireland\n",'Not in the Republic of Ireland'), y=54.6), size= 1.8, color= 'white', fontface= "plain")+
theme_void()
girafe(ggobj = interactivemap)