calculate_min_dist {sugarglider} | R Documentation |
Calculate the Smallest Distance Across Unique Combinations of Major Axes
Description
This function calculates the smallest distance between all unique coordinate combinations of major axes using the Haversine formula, which measures distances on the surface of a sphere (i.e., Earth). The function returns the minimum distance in degrees of latitude and a corresponding height that maintains a glyph ratio of 1:1.618 (the golden ratio).
Usage
calculate_min_dist(data)
Arguments
data |
A data frame containing columns 'x_major' and 'y_major', which represent the coordinates (longitude and latitude) for each point. |
Value
A list containing:
- width
The smallest distance between any two unique points, converted from meters to degrees of latitude.
- height
The height corresponding to the width, calculated using the golden ratio (1:1.618).
[Package sugarglider version 1.0.3 Index]