Learn R Programming

fossil (version 0.3.7)

loc.map: Mapping Points on a Global Map

Description

A function to plot any number of points given their latitude and longitude respectively on a map of the world.

Usage

loc.map(x, ...)

Arguments

x

a table with a longitude and latitude column respectively with optional associated attributes

arguments to be passed to the plot call

Value

Plots a map of the world focused on the locations provided.

Details

This is a helper function, which automatically zooms in and centers the map view on the input points. The allow the user to adjust the usual parameters for a scatterplot outlined by par.

See Also

msn.map

Examples

Run this code
# NOT RUN {
#plotting the fdata sample set
data(fdata.lats)
loc.map(fdata.lats)

# }

Run the code above in your browser using DataLab