estima_dc2 | R Documentation |
Estimate the distance to shore on a projected map and transformed data. The default function loads a polygon from Peru and estimates the distance to the Peruvian coast. If you want to calculate the distance to the coast of another place to load your polygon, the polygon must have the class "SpatialPolygonsDataFrame", the distance is expressed in nautical miles. This function is 10 times faster than estimate_dc.
estima_dc2(x)
x |
longitude <- c(-77.1,-78.1,-77.3)
latitude <- c(-14,-13.4,-15.1)
dc <- estima_dc2(lon = longitude, lat = latitude, polygon = PERU_SP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.