Download Natural Earth land area map data, zoom on a given window determined by longitude and latitude coordinates and transform to a specified projection. Alternatively, load a previously downloaded and unzipped data such as the "Land polygons" data here: https://www.naturalearthdata.com/downloads/110m-physical-vectors/

map(xrange, yrange, crs = "EPSG:4326", ne_dir = NULL)

Arguments

xrange

Numeric vector with minimum and maximum longitude

yrange

Numeric vector with minimum and maximum latitude

crs

Coordinate Reference System to use for all spatial operations (default is WGS-84 or EPSG:4326 CRS)

ne_dir

Path to the directory where Natural Earth data was manually downloaded and unzipped

Value

Object of the spannr_world (and sf) class