View source: R/addl-measure-gen-fcns.R
There's a set of functions for re-projecting spatial data based on its centroid. This can be used to use distance- or area-preserving map projections centered on local areas. This should only be necessary when a function that can only operate on planar geometries is needed. local_equidistant_project
1 | local_equidistant_project(st_df, projection_center = NULL)
|
Projects a shapefile to an Azimuth Equidisant Projection centered on a supplied centroid, or on a centroid generated for the supplied shapefile. This allows distances to be calculated straightforwardly using meters distance unit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.