Description Usage Arguments Value Examples
View source: R/earthquakeFunctions.R
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.
1 | geo_circle_intersections(circle1, circle2, intersection_name)
|
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 |
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
1 2 | Usage example
RLOK_ELIS_ints<-geo_circle_intersections(RLOK_circle,ELIS_circle,"RLOK_ELIS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.