Skip to contents

Maps and cartography

Automatic, explained maps, thematic maps, projections, graticules, basemaps and GeoSpaX-style map furniture.

geo_automap() geo_automap_explain()
Automatic publication maps that explain their choices
geo_map() map_raster() map_polygons() map_lines() map_points() map_labels() map_curved_labels() map_line_labels() map_contours() map_zoom() map_build()
Layered maps, built one layer at a time
map_presets()
Standard cartographic symbols
geo_panels() geo_facet_map() geo_inset()
Multi-panel map layouts
geo_map3d()
3D terrain maps
geo_webmap()
Interactive web maps
plot_choropleth() plot_bubble()
Choropleth and bubble maps
plot_sites()
Publication-ready study-site maps
plot_geo()
Map Hill numbers (and coverage) in geographic space
plot_topo()
Map tree stems over topography
geo_crs() coord_projection() map_graticule()
Map projections and graticules
annotation_scale_bar() annotation_north_arrow() map_legend()
Scale bars, north arrows and legends in GeoSpaX styles
geo_basemap()
Basemaps for study-site and diversity maps
geo_breaks() geo_classify()
Classify a numeric column into map classes
geo_save()
Save a map figure (PNG, PDF, SVG, TIFF, JPEG)
theme_tidymapr()
Map theme
ggplot_add(<tmr_geo_basemap>)
Add a tidymapr basemap to a ggplot

Spatial analysis

Interpolation and kriging, spatial autocorrelation and hotspots, distances, computed in C++ on several cores.

geo_interpolate()
Interpolate point measurements onto a grid
geo_hotspot() geo_lisa()
Local spatial statistics: hotspots and LISA clusters
geo_dbscan()
Point clusters with DBSCAN
geo_landscape()
Landscape fragmentation metrics
geo_moran()
Moran's I for spatial autocorrelation of diversity
geo_distance()
Pairwise geographic or elevational distances
geo_decay()
Distance decay with geographic, elevational or environmental distance
geo_mem()
Distance-based Moran's eigenvector maps (dbMEM)

Terrain and hydrology

D8 flow direction, flow accumulation, watersheds, the topographic wetness index and terrain derivatives.

geo_flow_direction() geo_flow_accumulation() geo_watershed() geo_twi()
Terrain hydrology: flow direction, accumulation, watersheds and TWI
geo_elevation()
Download or read elevation (SRTM-style DEM)

Remote sensing

Spectral indices with Otsu thresholds and spectral diversity in Hill numbers.

geo_spectral_index()
Spectral indices from satellite bands
geo_spectral_diversity()
Spectral diversity in Hill numbers
geo_stac_collections() geo_stac_search() geo_stac_read()
Satellite imagery from STAC catalogues

Data input and output

GIS, CAD and remote sensing formats through GDAL, rasters and vectors as tidy objects, and environmental layers.

geo_read() geo_vector_read() geo_raster_read() geo_write() geo_vector_write() geo_raster_write()
Read and write spatial files through GDAL
geo_layers()
List what a spatial file contains
geo_buffer() geo_intersection() geo_difference() geo_union() geo_crop() geo_area() geo_centroid() geo_bbox() geo_join() geo_distance_to()
Tidy vector geometry verbs
geo_raster_crop() geo_raster_mask() geo_raster_resample() geo_raster_project() geo_raster_terrain() geo_raster_focal() geo_raster_zonal()
Tidy raster analysis verbs
geo_as_sf() geo_drop_geometry()
Convert site coordinates to an sf tibble
geo_extract()
Extract raster values at sites
as_sf() as_spat_raster()
Hand off spatial objects to tmap, leaflet and friends
geo_bioclim_vars() geo_bioclim() geo_worldclim() geo_chelsa()
Bioclimatic rasters (WorldClim and CHELSA)
geo_gadm()
Administrative boundaries from GADM

Ecology with tidydiversity

Diversity surfaces, occurrence records, spatial diversity patterns, species distribution models and forest plot maps.

geo_diversity_surface()
Map diversity as a continuous surface, with its uncertainty
plot_diversity_surface()
Plot diversity surfaces and their uncertainty
geo_clean()
Clean occurrence coordinates
geo_gbif()
Import GBIF-style occurrence records
geo_as_features()
Export a site-by-feature matrix for conservation planning
geo_rarefy_spatial()
Spatially constrained rarefaction
geo_grain()
Aggregate sites or rasters across grains (MAUP helpers)
geo_middomain()
Geometric mid-domain null for elevational richness
sdm_fit() sdm_predict() sdm_evaluate() plot_sdm()
Tidy species distribution models (presence-background / presence-absence)
sdm_maxent() predict(<tmr_maxent>)
Maxent species distribution models, in C++
sdm_ensemble() predict(<tmr_sdm_ensemble>)
Ensembles of species distribution models
stems_quadrat() stems_habitat() stems_neighbours()
Spatial verbs for ForestGEO-style stem maps
stems_habitat_test()
Torus-translation habitat association test (ForestGEO)

Recipes

Read, write, check and run GeoSpaX recipes, shareable YAML workflows from data to map and report.

Example data

png_ants_sites
GPS positions of the Mt Wilhelm ant bait transects
geo_example_sites()
Published GPS coordinates for the Mt Wilhelm study sites
geo_example_stems()
Simulated ForestGEO-style stem table for tests
geo_example_dem()
Simulated DEM for testing local metre stem maps
geo_example_censuses()
Two simulated censuses for testing demography code

Package

tidymapr tidymapr-package
tidymapr: Tidy Mapping, Spatial Analysis and Publication Cartography
geo
Geospatial helpers for tidy biodiversity workflows