puntos_tierra: points on land

View source: R/puntos_tierra.R

puntos_tierraR Documentation

points on land

Description

identify the positions in land

Usage

puntos_tierra(x, y)

Arguments

x

longitude

y

latitude

Details

if puntos_tierra return NA you need to check the longitude or latitude.

Examples

head(dataLand)
dataLand$pLand <- puntos_tierra(x = dataLand$Longitud, y = dataLand$Latitud)

mapa_peru()
points(dataLand$Longitud, dataLand$Latitud, pch = 16, col = 2)
points(dataLand$Longitud[dataLand$pLand < 0], dataLand$Latitud[dataLand$pLand < 0], col = 4, pch = 16)
legend("toprigh", legend = c("sea", "land"), pch = 16, col = c(2, 4), bty = "n")


PabloMBooster/fenix documentation built on Sept. 7, 2024, 9:19 a.m.