BIEN_ranges_skinny_ranges_to_richness_raster {BIEN} | R Documentation |
Build a richness raster from a skinny range file
Description
BIEN_ranges_skinny_ranges_to_richness_raster takes in "skinny" range data and converts it to a richness raster.
Usage
BIEN_ranges_skinny_ranges_to_richness_raster(skinny_ranges, raster)
Arguments
skinny_ranges |
A matrix output by the function "BIEN_ranges_skinny" or equivalent methods. |
raster |
The raster that was used in building the skinny_ranges matrix. |
Value
Raster
See Also
Other range functions:
BIEN_ranges_box()
,
BIEN_ranges_genus()
,
BIEN_ranges_intersect_species()
,
BIEN_ranges_list()
,
BIEN_ranges_load_species()
,
BIEN_ranges_sf()
,
BIEN_ranges_shapefile_to_skinny()
,
BIEN_ranges_species_bulk()
,
BIEN_ranges_species()
Examples
## Not run:
template_raster <- terra::rast(
crs = "+proj=laea +lat_0=15 +lon_0=-80 +x_0=0 +y_0=0 +datum=WGS84
+units=m +no_defs +ellps=WGS84 +towgs84=0,0,0",
ext = ext(c(-5261554, 5038446, -7434988, 7165012 )),
resolution = c(100000, 100000))
#Download ranges and convert to a "skinny" format
skinny_ranges <- BIEN_ranges_shapefile_to_skinny(
directory = BIEN_ranges_species_bulk(species = c("Acer rubrum"),
raster = template_raster)
#Convert from skinny format to richness raster
richness_raster<- BIEN_ranges_skinny_ranges_to_richness_raster(
skinny_ranges = skinny_ranges,raster = template_raster)
plot(richness_raster)
## End(Not run)
[Package BIEN version 1.2.6 Index]