tmap icon indicating copy to clipboard operation
tmap copied to clipboard

Earth boundary not working in V4

Open RSO9192 opened this issue 1 year ago • 1 comments

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 avatar Oct 03 '24 13:10 RSO9192

See: https://github.com/r-tmap/tmap/issues/929

Nowosad avatar Oct 03 '24 16:10 Nowosad

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

mtennekes avatar Oct 21 '24 20:10 mtennekes