Learn R Programming

geo (version 1.4-3)

rectPeri: Given rectangle code return perimeter as a polygon in lat lon

Description

The outline/boundary of a statistical rectangle is returned as 5 positions, the first and last of which are the same.

Usage

rPeri(r)
srPeri(sr)
mrPeri(mr, dlat = 5, dlon = 10)
drPeri(dr, dlat = 1, dlon = 2)

Arguments

r,sr,mr,dr
Rectangle codes.
dlat,dlon
Dimensions of latitude and longitude given in minutes and degrees for mrPeri and drPeri, respectively.

Value

Rectangle outline as 5 positions.

See Also

deg2rect, rectArea, geoarea.

Examples

Run this code
geoplot(island, type = "n", grid = FALSE)
  geolines(rPeri(468))
  geolines(srPeri(4681))

Run the code above in your browser using DataLab