mappoints: Produce a Map of a Region with Data overlayed

View source: R/mappoints.r

mappointsR Documentation

Produce a Map of a Region with Data overlayed

Description

Utilises the map function to produce a map of the study area based on locations given.

Usage

mappoints(XY.data, xlim, ylim, database = 'world', gtitle)

## S3 method for class 'data'
mappoints(XY.data, xlim, ylim, database = "world",
  gtitle = NULL)

Arguments

XY.data

matrix of longitude and latitude co-ordinates

xlim

map x limits

ylim

map y limits

database

either "world" or "world2" depending on the area being plotted. Defaults to "world"

gtitle

Title of Plot

Details

Calls on the map function for plotting.

References

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.

Examples

# Load dataset
data(yftdiet)

# Produce map of the data
mappoints(XY.data = yftdiet[,c("Lon", "Lat")])
#title(main = "YFT Data Distribution")


pkuhnert/diet documentation built on June 10, 2025, 2:59 a.m.