Learn R Programming

geo (version 1.4-3)

locdist: Distance between two locations

Description

Distance between two locations set out by clicking on a geo--plot.

Usage

locdist(scale = "nmi", type = "p")

Arguments

scale
Unit of returned distance, default "nmi" for nautical miles, all other values return kilometers
type
Display points "p" or lines "l" between clicks, "n" for nothing

Value

Returns distance between two point clicks on a geoplot.

See Also

Calls arcdist and geolocator.