add_point_coordinates: Add coordinates on horizontal plane

View source: R/spatial_distribution.R

add_point_coordinatesR Documentation

Add coordinates on horizontal plane

Description

Add coordinates of the ant clusters mapped onto the horizontal plane. Calculations are performed based on the distances from the reference points to the cluster center projected upward to the ground level. Because the exact geometrical solution is often unavailable due to the distance measurement errors, the approximate solution is achieved through the minimizing the loss function, which is proportional to the differences between measured distances and those implied by the choice of the candidate center position.

Usage

add_point_coordinates(spatial_data, reference_points)

Details

@param spatial_data A data frame with the columns containing data on the distances of the reference points to the cluster center shifted upward to the ground level. @param reference_points A named list with the plane coordinates of the reference points. List elements correspond to the different colonies.


TomVuod/overwintering documentation built on Nov. 22, 2023, 10:24 a.m.