world: Plot of the world

Description Usage Arguments Details See Also Examples

Description

Plots quickly, medium resolution outlines of large land masses and bodies of water.

Usage

1
2
3
world(ylim=c(-90, 90), xlim=c(-180, 180), add=FALSE, asp = 1,
      xlab = "", ylab = "",  xaxt = "n", yaxt = "n", eps=.1,
      shift=FALSE,...)

Arguments

ylim

range of latitudes

xlim

range of longitudes

add

logical; if true will add the world map to current plot.

asp

aspect ratio used if add is false, see plot.default.

xlab,ylab

labels for x- and y-axis; empty by default.

xaxt,yaxt

axis type for x- and y-axis; empty by default.

eps

Tolerance to decide when to insert line break about 0 if map is to be shifted. (leave this at .1)

shift

If TRUE shifts to be centered on the Dateline and longitude runs from 0 to 360. If FALSE centers on Prime Meridian and longitude runs from -180 to 180.

...

These are graphical arguments that are passed to the lines (and plot if add is false) function that draws the outline.

Details

This function uses the Rlab dataset world.dat for the coordinates. The main advantage of this function is that it is fast and easy to modify. The shift option to center over the dateline is useful because often plots of ocean and atmosphere information center the map this way.

See Also

US

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Draw map in device color number 2 
world( col=2 )
# add the US
US( add=TRUE )

## Western Europe (*which* big island is missing ?)
## with a (light color!) coordinate grid:

world(xlim=c(-10,18),ylim=c(36,60), xaxt = "s", yaxt = "s")
grid()

Rlab documentation built on May 30, 2017, 3:26 a.m.