am_species_per_csc: Total count for number of distinct species across cells, ie...

Description Usage Arguments See Also Examples

View source: R/spatial.R

Description

Global richness map data (i.e. number of different species per cell), optionally filtered for taxonomy and a preferred probability threshold

Usage

1
am_species_per_csc(csc, min_prob = 0.5, keys = NULL)

Arguments

csc

a vector of strings with CsquareCodes (grid cell identifiers)

min_prob

a numeric with the threshold for probable occurrence, default 0.5

keys

a vector of string with SpeciesID values

See Also

Other spatial: am_csc_from_extent(), am_map_leaflet(), am_raster(), am_species_in_csc(), csquare_from_dd(), csquare_to_dd(), rasterize_coords(), which_cells_in_raster()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# distinct number of species in a specific grid cell
am_species_per_csc("7516:236:1", 0.99)

# distinct species count per grid cells in LME 1
csc <- am_hcaf() %>% filter(LME == 1) %>% collect() %>% pull(CsquareCode)
am_species_per_csc(csc, 0.9)

# global richness map data based on taxonomy
keys <- am_search_exact(Family = "Carangidae")$SpeciesID
am_species_per_csc(keys = keys, min_prob = 0.9)

## End(Not run)

raquamaps/aquamapsdata documentation built on Feb. 25, 2021, 10:28 p.m.