GEcircle: Create Google Earth circles around a Lat/Long point

Description Usage Arguments Details Value See Also Examples

Description

GEcircle creates approximate circles in KML to be opened in Google Earth

Usage

1
GEcircle(lat, long, radius, color, west = T)

Arguments

lat

String or Numeric. Vector of latitudes.

long

String or Numeric. Vector of corresponding longitudes.

radius

Numeric. Radius, of desired circle in meters.

color

Vector of any of the three kinds of R color specifications. Determines the circle's color; value is passed onto col2rgb.

west

Logical. Are the points in the western hemisphere? If values for long are already negative, this should be F.

Details

This function can use decimal degree or degree, minute, second format of latitude/longitude points to allow copy/paste of points from Google Earth. Make sure the degree and prime symbols are removed and replaced with spaces before running, as in the example.

Value

This functions will write KML files to your working directory.

See Also

ptcirc

Examples

1
2
3
4
5
6
buoys <- data.frame(rbind(c('38 19 1.71', '76 27 4.07'),
                          c('38 18 40.44', '76 18 40.81'),
                          c('38 18 56.44', '76 17 3.80'),
                          c('38 18 27.13', '76 19 55.57')),
                    stringsAsFactors = F)
GEcircle(buoys[,1], buoys[,2], radius = 900, color = 'red', west = T)

mhpob/TelemetryR documentation built on Sept. 28, 2020, 11:33 a.m.