Suppose I want to plot New York or Ohio using R:
library('ggplot2')
library('map')
library('raster')
map <- raster::getData("GADM",country='USA',level=1)
map <- map[map$NAME_1 %in% c('Ohio'),]
map <- map_data(map)
ggplot() +
theme_void() +
geom_polygon(data = map,
aes(x=long, y = lat, group = group),
fill="grey", alpha=0.3)
Here are the results:
How can I not display extra land in the Ohio plot, and only display land for New York?
It looks like it plots the state borders, see google maps for comparison.