Setting boundaries in ggplot2

I was trying to figure out how to set the boundaries of maps created in ggplot2 to focus on a region of the state or a few counties. It’s actually not that hard to do in ggplot2 and R.

Basically you create a bounding box based on a shape like a few counties.

county <- counties(state=’ny’, cb=TRUE)

bbox <- county %>% filter(NAME %in% c(‘Oswego’,’Madison’)) %>% st_bbox()

Then add this line to the ggplot statement to set the boundaries of the plot. Simple enough.

coord_sf(xlim=c(bbox[1], bbox[3]), ylim=c(bbox[2], bbox[4])) +

Apparently I’ve been over sharing Snoopy on the Facebook 🐢 πŸ’£ 

Apparently I’ve been over sharing Snoopy on the Facebook 🐢 πŸ’£ 

And have stumbled upon the creepiness of the Facebook algorithms, now trying to serve me fringe religious Snoopy memes to feed my interest in Snoopy. I’ve just been sharing a lot of Snoopy because I hate how political Facebook has become and I’d rather see more light hearted happy memes than all the hatred and politics that dominate Facebook these days. 

Wakely Dam (1942 vs. 2017)

[nychistory id=”25482″]

75 years earlier if you were to go to Wakely Dam, the Cedar River Flow would look somewhat different as the original dam was about eleven feet higher, flooding a bit more of the surrounding land. They're also would have been several more buildings and shanties where the Gould Paper Company had their operations for this portion of Moose River Plains, and a larger cleared area. But overall, the Wakely Dam areas hasn't changed that dramatically over the years.