earthBear | R Documentation |
earthBear
calculates bearing (in degrees) between two
lon/lat positions.
One of the lon/lat positions (i.e. lon1 and lat1) can be a vector
of positions to compare against the other lon/lat position (i.e. lon2 and lat2)
earthBear(lon1, lat1, lon2, lat2)
lon1 |
Longitude 1 (in decimal degrees) |
lat1 |
Latitude 1 (in decimal degrees) |
lon2 |
Longitude 2 (in decimal degrees) |
lat2 |
Latitude 2 (in decimal degrees) |
Vector of directional bearings (degrees)
earthBear(0,0,20,20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.