Details

ggspatial: Spatial data framework for ggplot2

ggspatial: Spatial data framework for ggplot2
5/5 based on 1 votes.
Spatial data plus the power of the ggplot2 framework means easier mapping when input data are already in the form of Spatial* objects (most spatial data in R).

The ggspatial package provides several functions to convert spatial objects to ggplot2 layers. There are three cases: vector data (geom_spatial() or ggspatial()), raster data (geom_spatial() or ggraster()), and tiled basemap (geom_osm() or ggosm()). Their usage is almost identical to normal ggplot geom_* functions, except that the mapping and the data arguments are switched (usually mapping comes before data, but in this context, where the type of the object determines the method that gets called, it makes more sense for data to come first).
Submitted by elementlist on Apr 04, 2017
528 views. Averaging 0 views per day.

Post Reply


Please login or register if you wish to leave a comment.

Quick Search

Statistics

3,012 listings in 21 categories, with 2,256,053 clicks. Directory last updated Sep 12, 2023. Welcome Amara Fatima, the newest member.