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

Earth boundary not working in V4 #943

Closed
RSO9192 opened this issue Oct 3, 2024 · 2 comments
Closed

Earth boundary not working in V4 #943

RSO9192 opened this issue Oct 3, 2024 · 2 comments

Comments

@RSO9192
Copy link

RSO9192 commented Oct 3, 2024

In tmap v4 is not possible to reproduce these plots with robinson projections

# working in tmap V3
library(tmap)
data(World)

tm_shape(World, projection = "+proj=robin") +
  tm_polygons("HPI") +
  tm_style("natural", earth.boundary = c(-180, -87, 180, 87))  +
  tm_format("World", inner.margins = 0.02, frame = FALSE)

# tmap v4 not drawing earth boundaries
library(tmap)
data(World)

tm_shape(World, crs = "+proj=robin") +
  tm_polygons("HPI") +
  tm_style("natural", earth.boundary = c(-180, -87, 180, 87))  +
  tm_format("World", inner.margins = 0.02, frame = FALSE)
@RSO9192 RSO9192 changed the title Earth boundary not working Earth boundary not working in V4 Oct 3, 2024
@Nowosad
Copy link
Member

Nowosad commented Oct 3, 2024

See: #929

@mtennekes
Copy link
Member

It's working now, but don't forget to set frame = TRUE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants