transform_xy: Quick transform of spatial objects to WGS84

Description Usage Arguments

View source: R/helpers.R

Description

The function will use spTransform from the rgdal package to automatically transform your spatial data to the WGS84 geographic coordinate system. As this is the coordinate system required for mapping with the leaflet package, it can come in handy when mapping spatial objects in R.

Usage

1
transform_xy(sp_object)

Arguments

sp_object

an R object of class Spatial* that you'd like to transform to WGS84.


walkerke/kwgeo documentation built on May 3, 2019, 10:47 p.m.