mappoints | R Documentation |
Utilises the map
function to produce a map of the study area based on
locations given.
mappoints(XY.data, xlim, ylim, database = 'world', gtitle)
## S3 method for class 'data'
mappoints(XY.data, xlim, ylim, database = "world",
gtitle = NULL)
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 |
Calls on the map
function for plotting.
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.
# Load dataset
data(yftdiet)
# Produce map of the data
mappoints(XY.data = yftdiet[,c("Lon", "Lat")])
#title(main = "YFT Data Distribution")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.