Smartly Create Maps from R Objects
Coerce an R object to a matrix of coordinates
View spatial objects as interactive leaflet maps
Smartly convert an object to a simple features data frame
smartmap: Smartly Create Maps from R Objects
Convert coordinate matrices to sf objects
Convert coordinate matrices to sfc objects
Convert sf objects to normal data.frames with longitude and latitude c...
Preview spatial data as 'leaflet' maps with minimal effort. smartmap is optimized for interactive use and distinguishes itself from similar packages because it does not need real spatial ('sp' or 'sf') objects an input; instead, it tries to automatically coerce everything that looks like spatial data to sf objects or leaflet maps. It - for example - supports direct mapping of: a vector containing a single coordinate pair, a two column matrix, a data.frame with longitude and latitude columns, or the path or URL to a (possibly compressed) 'shapefile'.