Learn R Programming

Rlab (version 2.15.1)

US: Plot of the US with state boundaries

Description

Plots quickly, medium resolution outlines of the US with the states and bodies of water.

Usage

US( xlim=c(-124.7, -67.1), ylim = c(25.2, 49.4),
    add=FALSE, shift=FALSE, asp=1, ...)

Arguments

ylim

range of latitudes

xlim

range of longitudes

add

If true will add the world map to current plot

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.

asp

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

These are graphical arguments that are passed to the lines function that draws outline.

Details

This function uses the Rlab dataset US.dat for the coordinates.

See Also

world

Examples

Run this code
# NOT RUN {
# Draw map in device color # 3 
US( col=3) 
# }

Run the code above in your browser using DataLab