Learn R Programming

fields (version 1.0)

world: Plot of the world

Description

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

Usage

world(ylim=c(-90, 90), xlim=c(-180, 180), add=F, ...)

Arguments

ylim
range of latitudes
xlim
range of longitudes
add
If true will add the world map to current plot
...
These are graphical arguments that are passed to the lines function that draws outline.

Details

This function uses the FIELDS dataset world.dat for the coordinates.

Examples

Run this code
# Draw map in device color # 2 
world( col=3)

Run the code above in your browser using DataLab