I'm having trouble plotting a world map with the x-axis (longitude) labeled similarly to the y-axis. The longitude labels don't make sense to me and don't seem to respond to scale_x_continuous().
Both of your examples work fine for me (thanks for the reprex). Maybe look into your ggplot default parameters? reinstall the packages? I noticed that there are no grid lines on your plots either so perhaps you have something set to NULL.
So I've tried reinstalling sf, tidyverse, ggplot2 and haven't had any luck. Did a quick check of defaults, and nothing stood out to me. Not sure what else to try!
Your example code works for me as well, but it's interesting as I was having this exact issue the other day. It was after trying different projections using the "crs" option in coord_sf(). Restarting my computer and coming back to it fixed it, will post if I can replicate your issue.
Some session info:
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rnaturalearth_0.1.0 sf_0.9-6 forcats_0.5.0
[4] stringr_1.4.0 dplyr_1.0.7 purrr_0.3.4
[7] readr_1.4.0 tidyr_1.1.2 tibble_3.0.4
[10] ggplot2_3.3.2 tidyverse_1.3.0
That is interesting! I have gone through a few restarts this week and haven't had any luck. (I also tried it with R 4.0.2 seeing as you are using a different R version than me).
I checked my install and sf_use_s2() is already FALSE (hence why I did not have the problem). I certainly did not do that myself so I wonder what would cause it to be TRUE for some environments and FALSE for others?