estima_distance_signo: Minimal distance

estima_distance_signoR Documentation

Minimal distance

Description

Estimate minimun distance. The distance contemplates the curvature of the earth and it is expressed in nautical miles. it also, determines the location with respect to the point base, positive when it is on the right and negative when it is on the left

Usage

estima_distance_signo(x, y, x1, y1)

Arguments

x

longitude of the observation

y

latitude of the observation

x1

longitude base

y1

latitude base

Examples

signo <- estima_distance_signo(x=points_fishing$lon, y=points_fishing$lat, x1 = shelfbreak$lon, y1 = shelfbreak$lat)
mapa_peru()
points(x=points_fishing$lon, y=points_fishing$lat, pch = ".", cex = 4, col = signo$signo + 3)

PabloMBooster/fenix documentation built on Oct. 21, 2023, 8:22 p.m.