world | R Documentation |
A polygon representing a worldmap tailored to be not too detailed, but still fitting all glottolog languages inside the polygons.
data("world")
The format is a sfc_POLYGON
of length 477 with an EPSG:4326 projection.
Some trickery was needed to produce a lightweight polygon to represent the worldmap in reasonably accuracy without becoming too large and unwiedly. The polygons are such that all coordinates for languages as listed in the glottolog (version 5) are inside these polygons.
The map has a basic EPSG:4326 projection, so longitude-latitude coordinates can immediately be added to it. However, this does not look very nice, because the polygon from Eurasia wraps around. Consider more suitable projections, see examples. To allow for a nice pacific-centered projection Greenland has been clipped.
Polygons are based on the data from https://www.naturalearthdata.com with adjustments. Glottolog coordinates to select and adjust the polygons are from https://glottolog.org.
data(world)
plot(world)
# try different projections
mollweide_atlantic <- "+proj=imoll +lon_0=11.5"
equalearth_pacific <- "+proj=eqearth +lon_0=151"
azimuth_equaldist <- "+proj=aeqd +lat_0=90 +lon_0=45"
plot(sf::st_transform(world, crs = azimuth_equaldist))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.