How do I change the default line/label intervals in the figure below?
I'm trying to make a map figure. My code, and the figure it makes, are below.
I'd like to change the figure so that the lines and labels for lat and long occur at each degree, rather than at each 0.5 degree for lat and every other degree for long, as it is now. How do I do that?
My best guess so far is to use theme(axis.ticks), theme(panel.grid), or derivatives of those, but no luck so far.
world <- ne_countries(scale = "large", returnclass = "sf")
north_america <- c("Canada", "United States of America")
na_map <- subset(world, name %in% north_america)
ggplot(data = na_map) +
geom_sf(fill = "lightgrey") +
xlim(-130, -122) +
ylim(45.7, 49.3)+
theme_dark()