geo_circle_intersections: geo_circle_intersections: use points on two circles (can be...

Description Usage Arguments Value Examples

View source: R/earthquakeFunctions.R

Description

geo_circle_intersections: use points on two circles (can be created with destPoint) to approximate their intersection points by finding points on each circle that are close together (using distGeo for accurate distance). This functino uses hclust to separate out the two intersections by geographical distance.

Usage

1
geo_circle_intersections(circle1, circle2, intersection_name)

Arguments

circle1

dataframe of points on a circle with cols (lon,lat)

circle2

dataframe of points on a circle with cols (lon,lat)

intersection_name

character string to label the intersection points

Value

a dataframe of cols (lon,lat) and 2 rows containing the 2 intersection points of the circles (as averages of all the points in a cluster), if they exist

Examples

1
2
Usage example
RLOK_ELIS_ints<-geo_circle_intersections(RLOK_circle,ELIS_circle,"RLOK_ELIS")

lilyacb/quakeTri documentation built on Dec. 21, 2021, 10:49 a.m.