View source: R/puntos_tierra.R
puntos_tierra | R Documentation |
identify the positions in land
puntos_tierra(x, y)
x |
longitude |
y |
latitude |
if puntos_tierra
return NA you need to check the longitude or latitude.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.