Skip to contents

Read

Fetch data, spatial and non-spatial, especially from APIs

get_species_by_feature()
Get species by feature

Taxonomic

Match taxa from APIs, especially World Register of Marine Species (WoRMS)

match_taxa()
Match taxa to spp.duckdb via cascade
wm_rest()
Query WoRMS REST API with multiple requests

Analyze

Analyses

Visualize

Plot and map Seascapes

add_cell_tiles()
Add an msens cell tile layer to a mapgl map
add_cells()
Add a raster cell layer to a map
add_pmfill()
Add a PMTile polygon fill layer to a map
add_pmlabel()
Add symbol label layers from sf point data
add_pmline()
Add PMTile outline line layers to a map
cell_stats()
Fetch msens cell value statistics for a SQL query
cell_tile_url()
Build an msens cell tile URL template
ggmap_areas()
Static ggplot map of labeled areas
ggplot_flower()
Build a flower-plot ggplot for component scores
map_cells()
Map raster cells with outlines and labels
map_pmtiles()
Map data on PMTile vector tiles
ms_basemap()
Basemap
plot_flower()
Flower plot of component scores (interactive or static)
tbl_species()
Species table (interactive DT or static gt)

Data

Lookups for easy reference

ply_boemrgns
Polygons of BOEM Regions
ply_boemrgns_s05
Polygons of BOEM Regions, simplified to 5%
ply_ecoareas
Polygons of EcoAreas
ply_ecoareas_s05
Polygons of EcoAreas
ply_ecorgns
Polygons of Ecoregions
ply_ecorgns_s05
Polygons of Ecoregions
ply_planareas
Polygons of Planning Areas
ply_planareas_s05
Polygons of Planning Areas, simplified to 5%

Other

Other functions not defined by the concepts above

cell_id_raster()
Cell-ID SpatRaster
cells_in_polygon()
Cells intersecting a polygon
cells_in_pra()
Cells belonging to a Program Area zone
compute_er_score()
Compute extinction risk score from extrisk_code and flags
mean_score()
Weighted mean of component scores
parse_noaa_status()
Parse NOAA protected_status field
scores_for_cells()
Aggregate component scores across a set of cells
scores_for_pra()
Precomputed component scores for a Program Area
sdm_db_con()
Connect to SDM DuckDB
sdm_db_path()
Path to SDM DuckDB
species_for_cells()
Species table aggregated across a set of cells
spp_db_con()
Connect to species taxonomy DuckDB