This is an alternative version of the
based on latitudes [0, 360), which then has the Pacific
Ocean in the centre of the map.
The data file is merely a character string which
specifies the name of an environment variable which contains the
base location of the binary files used by the map drawing functions.
This environment variable (
R_MAP_DATA_DIR_WORLD for the datasets in the
maps package) is set at package load time if it does not
already exist. Hence setting the environment variable before loading
the package can override the default location of the binary datasets.
This data set is in fact largely obsolete. Often the same (more general) result can be obtained by using wrapping:
This will also work fine with
fill=TRUE or any other appropriate longitude interval (e.g.
world2 is useful when setting
xlim to an interval crossing the 180 meridian.
The public domain Natural Earth data set is available from https://www.naturalearthdata.com.
Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell Laboratories Statistics Research Report [93.2], 1993.
Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical Database", AT&T Bell Laboratories Statistics Research Report [95.2], 1995.
map('world2', xlim = c(100, 300)) map.axes() # xlim is performed before wrapping: map('world', wrap=c(0,360), xlim = c(100, 300)) # so to emulate "world2": ww2 <- map('world', wrap=c(0,360), plot=FALSE, fill=TRUE) map(ww2, xlim = c(100, 300), fill=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.