Error when using usmap package with geom_point
I’m trying to plot the locations of various stations across the U.S. with color of the point corresponding to a certain category. Some of these locations are outside of the continental U.S. (territories), but I’d like to at least include Alaska and Hawaii on the map. My code had previously worked months ago, but I went back to change colors and upon rerunning it, I get an error. I’m getting the same error when running other code where I use usmaps with ggplot in this way too.
Plotting old Connecticut county regions in USMAP
Recently, the American Census Bureau changed the geographical entities reported in the state of Connecticut, as discussed here. Previously, data was reported in the following 8 counties:
Drawing state boundaries in county map in recent version
Using usmap
, I have made a plot of values by US counties from some values stored in a variable county
. Before I recently updated R and all my packages, I could easily create a county map with thick state borders and with state abbreviations using the following code: