Packages & functions
- Packages: There are plenty of packages
sf
: A package that provides simple features access for R
st_as_sf()
: Convert foreign object to an sf object
aggregate()
: aggregate an sf object, possibly unioning geometries
st_bbox()
: Return bounding of a simple feature or simple feature set
geom_sf()
: geoms to visualise simple feature (sf) objects.
st_geometry()
: Get, set, or replace geometry from an sf object
rgdal
: Bindings for the ‘Geospatial’ Data Abstraction Library
readOGR()
: Read OGR vector maps into Spatial objects
- See explanation of necessary files (
.shp
, .shx
, .dbf
)
cowplot
package and ggdraw()
: Set up a drawing layer on top of a ggplot
- Other tutorials: