Error. Latitude and longitude grid cannot be drawn correctly on the map

I am trying to make a world map in R, but I cannot draw the latitude and longitude grid correctly. It still doesn't work after adding the panel grid code!
It really drives me crazy, I cannot solve it and need help. :sob:
Thanks a lot!

code:
world_mollweide <- st_transform(world, crs = "+proj=moll")
ggplot(world_mollweide)+geom_sf()+coord_sf()+theme_minimal()+
theme(panel.grid.major = element_line(color = "black",size = 0.3),
panel.grid.major.x = element_line(color = "black",size = 0.3))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.