View source: R/createTexturedata.R
createTexturedata | R Documentation |
The function creates spatial dataframe of normalized soil texture proportions. They are normalized to 100 percent
createTexturedata(clay,silt,sand)
clay |
clay proportion of soil texture in percent |
silt |
silt proportion of soil texture in percent |
sand |
sand proportion of soil texture in percent |
the input data of soil texture proportions are imported into R as spatial raster or dataframe. They need to have uniform coordinate reference system (CRS) and same pixel size (resolution) if in raster map format. The sum of the proportions should be close to 100 per cent for each row
The output is a spatial pixel dataframe of normalized soil texture proportions (for each pixel)
It's important to ensure the input data does not have negative values nor add up to far below or above 100 per cent. It's also important to adhere to the order of the input data: clay, silt, sand
Christian Thine Omuto
createTexturedata
, appendTextureclass
#data(textureinput)
newmap=textureinput
texturedata=createTexturedata(newmap$clay, newmap$silt, newmap$sand)
cor(texturedata$CLAY,texturedata$CLAY_n)^2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.