Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

world map with out axes #3149

Closed
dominicroye opened this issue Feb 18, 2019 · 3 comments
Closed

world map with out axes #3149

dominicroye opened this issue Feb 18, 2019 · 3 comments

Comments

@dominicroye
Copy link

dominicroye commented Feb 18, 2019


I'm trying to plot a world map with geom_sf, but the axes are not showing up.

rplot

library(rnaturalearth)
library(sf)
library(ggplot2)
world <- ne_coastline(scale=10,returnclass = "sf")
ggplot(world)+geom_sf()+coord_sf()

Interesting is that with a country geom_sf does it well

spain

spain <- ne_countries(scale=10,country="Spain",returnclass = "sf")
ggplot(spain)+geom_sf()+coord_sf()
packages:
sf_0.7-3
ggplot2_3.1.0.9000

platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          5.2                         
year           2018                        
month          12                          
day            20                          
svn rev        75870                       
language       R                           
version.string R version 3.5.2 (2018-12-20)
nickname       Eggshell Igloo              
@yutannihilation
Copy link
Member

Thanks, this seems a duplicate of #2985. If you specify expand = FALSE, the axis labels should show up.

ggplot(world) + geom_sf() + coord_sf(expand = FALSE)

@dominicroye
Copy link
Author

Ok. I didn't saw this issue! Perfect with expand=FALSE it is solved. Thanks

@lock
Copy link

lock bot commented Aug 17, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants