[R-sig-Geo] world map problem with Mollweide projection
Roger Bivand
Roger.Bivand at nhh.no
Mon Nov 6 15:46:31 CET 2017
And the sf version (using the development master from github):
library(maps)
library(sf)
wrld <- st_as_sf(maps::map("world", fill=TRUE, plot=FALSE))
wrld_wrap <- st_wrap_dateline(wrld, options =
c("WRAPDATELINE=YES", "DATELINEOFFSET=180"), quiet = TRUE)
wrld_moll <- st_transform(wrld_wrap, "+proj=moll")
plot(st_geometry(wrld_moll), col="transparent")
See: https://github.com/r-spatial/sf/issues/541
Roger
On Mon, 6 Nov 2017, Elias T Krainski wrote:
> It works. Thank you!
>
> best wishes,
>
> Elias
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: Roger.Bivand at nhh.no
Editor-in-Chief of The R Journal, https://journal.r-project.org/index.html
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
More information about the R-sig-Geo
mailing list