shapefile_vector_from_raster | R Documentation |
This function takes a raster of a shapefile (for example the urban areas of Australia), and creates a shapefile (i.e. a vector). It uses the rmaxent package https://github.com/johnbaums/rmaxent It assumes that the input df is that returned by the prepare_sdm_table function
shapefile_vector_from_raster(shp_file, prj, agg_var, temp_ras, targ_ras)
shp_file |
SpatialPolygonsDataFrame - Spdf of spatial units used to aggregate the SDMs (e.g. urban areas of Australia) |
prj |
CRS object - Local projection for mapping the shapefile (e.g. Australian Albers) |
agg_var |
Character string - The field name in the shapefile to use for aggregating SDM results (e.g. Urban area codes) |
temp_ras |
Raster - An existing raster with the same extent, resolution and projection as the maxent models (e.g. Australia) |
targ_ras |
Raster - An existing raster of the shapefile with the same extent, resolution and projection as the maxent models (e.g. Australia) |
sort_var |
Character string - The field name in the shapefile to use for sorting (e.g. Urban area names) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.