View source: R/get_soilgrids.R
get_soilgrids | R Documentation |
A function to download SoilGrids dataset, created by Hengl et al. (2017)
get_soilgrids( aoi, layer = c("all", "sand", "silt", "clay", "soc", "phh2o", "bdod", "cfvo"), pred.quantile = "mean" )
aoi |
SpatVector. A polygon layer with area of interest. |
layer |
character. A string indicating what layers should
be downloaded. Either one of the following: |
pred.quantile |
character. A string indicating what predition
quantiles should be downloaded. Either one of the following: |
SpatRaster
Hengl, Tomislav, Jorge Mendes de Jesus, Gerard B. M. Heuvelink, Maria Ruiperez Gonzalez, Milan Kilibarda, Aleksandar Blagotić, Wei Shangguan, et al. “SoilGrids250m: Global Gridded Soil Information Based on Machine Learning.” PLOS ONE 12, no. 2 (February 16, 2017): e0169748. https://doi.org/10.1371/journal.pone.0169748.
library(terra) library(purrr) f <- system.file("extdata/extent.shp", package="rusleR") v <- vect(f) sand <- get_soilgrids(v, layer = "sand") plot(sand)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.