reproject | R Documentation |
Reproject/transform geodata.
reproject(x, new_CRS = EPSG_4326, new_coordnames = c("lng", "lat"))
x |
a |
new_CRS |
integer, |
new_coordnames |
character vector |
If x
is a Spatial
object (from the sp
package), new_CRS
must be a CRS
object; otherwise, pass an integer (EPSG code) or st_crs()
result.
An object of the same class as x
, but reprojected to the new coordinate system, and with new coordnames.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.