R and Geostatistics
1.3K views | +0 today

# R and Geostatistics

R and Geostatistics information
 Scooped by Elpidio I F Filho

## California Soil Resource Lab :: Additive Time Series Decomposition in R: Soil Moisture and Temperature Data

Elpidio I F Filho's insight:

Simple demonstration of working with time-series data collected from Decagon Devices soil moisture and temperature sensors. These sensors were installed in a potted plant, that was semi-regularly watered, and data were collected for about 80 days on an hourly basis. Several basic operations in Rare demonstrated:

reading raw data in CSV formatconverting date-time values to R's date-time formatapplying a calibration curve to raw sensor valuesinitialization of R time series objectsseasonal decomposition of additive time series (trend extraction)plotting of decomposed time series, ACF, and cross-ACF
No comment yet.
 Scooped by Elpidio I F Filho

## Creating a custom soil attribute plot using ggmap

Cusby Ryan Garner Senior Data Scientist, Revolution Analytics I love creating spatial data visualizations in R. With the ggmap package, I can easily download satellite imagery which serves as a base layer for the data I want to represent. In the code below, I show you how to visualize sampled soil attributes among 16 different rice fields in Uruguay. library(ggmap) library(plyr) library(gridExtra) temp <- tempfile() download.file("http://www.plantsciences.ucdavis.edu/plant/data.zip", temp) conne
No comment yet.
 Scooped by Elpidio I F Filho

## Circle packing in R (again)

Back in 2010 I posted some R code for circle packing. Now, just five years later, I've ported the code to Rcpp and created a little package which you can find at GitHub.The main function is circleLayout which takes a set of overlapping circles and tries to find a non-overlapping arrangement for them. Here's an example: And here's the code: # Create some random circles, positioned within the central portion# of a bounding square, with smaller circles being more common than# larger ones.ncircles
No comment yet.
 Scooped by Elpidio I F Filho

## The caret Package

Elpidio I F Filho's insight:

The caret package (short for Classification And REgression Training) is a set of functions that attempt to streamline the process for creating predictive models. The package contains tools for:

data splittingpre-processingfeature selectionmodel tuning using resamplingvariable importance estimation

as well as other functionality.

No comment yet.
 Scooped by Elpidio I F Filho

## Time Series Analysis using R-Forecast package – AnalyticBridge

No comment yet.
 Scooped by Elpidio I F Filho

## Spatial structure of soil texture and its influence on spatial variability of nitrate leaching

Elpidio I F Filho's insight:

Field scale variability of soil texture can influence crop yield and movement of soil water in the field. The objective of this study was to investigate the spatial structure of soil texture in relation to the variability of nitrate-N leaching using geostatistics. Soil textural fractions showed strong spatial autocorrelations from surface to 60 cm depth. Random variability of soil texture increased with depth. Soil water content, as well as total carbon, total nitrogen and soil organic carbon of top 15 cm, also showed spatial autocorrelations similar to soil texture. Elevation, relative slope position and vertical distance to channel network showed significant influence on the distribution of soil texture. Soil texture at 90 cm depth correlated best with cumulative percolated water and cumulative nitrate leached in field lysimeters. Our results showed that soil layers with low hydraulic conductivity control the water and nitrate movement through the soil profile.

No comment yet.
 Scooped by Elpidio I F Filho

## T-9: Variogram Modeller Part 3 - Geostatistics Kitchen

“In this website you will find a set of Mathematica Notebooks & Packages developed by grad students of the portuguese research center CERENA.”
No comment yet.
 Scooped by Elpidio I F Filho

## ESTUDO SOBRE A UTILIZAÇÃO ADEQUADA DA KRIGAGEM NA REPRESENTAÇÃO COMPUTACIONAL DE SUPERFÍCIES BATIMÉTRICAS

No comment yet.
 Scooped by Elpidio I F Filho

## Model generalization of two different drainage patterns by self-organizing maps

In this study, we develop a new method using self-organizing maps (SOMs) for the selection of hydrographic model generalization. The most suitable attributes of the stream objects are used as input variables to the SOM. The attributes were weighted using Pearson’s chi-square independence test. We used the Radical Law to determine how many features should be selected, and an incremental approach was developed to determine which clusters should be selected from the SOM. Two drainage patterns (dendritic and modified basic) were obtained from the National Hydrography Datasets of United States Geological Survey at 1:24,000-scale (high resolution) and used in order to derive stream networks at 1:100,000-scale (medium resolution). The 1:100,000-scale stream networks, derived in accordance with the proposed approach, are similar to those in the original maps in both quantity and visual aspects. Stream density and pattern were maintained in each subunit, and continuous and semantically correct networks were obtained.

No comment yet.
 Scooped by Elpidio I F Filho

## Influence of incorporating geometric anisotropy on the construction of thematic maps of simulated data and chemical attributes of soil

No comment yet.
 Rescooped by Elpidio I F Filho from Digital Soil Mapping

## Spatial Variability of Heavy Metals in the Soils of Ahwaz Using Geostatistical Methods

No comment yet.
 Scooped by Elpidio I F Filho

## PLOS ONE: Spatial Distribution of Soil Organic Carbon and Total Nitrogen Based on GIS and Geostatistics in a Small Watershed in a Hilly Area of Northern China

The spatial variability of soil organic carbon (SOC) and total nitrogen (STN) levels is important in both global carbon-nitrogen cycle and climate change research. There has been little research on the spatial distribution of SOC and STN at the watershed scale based on geographic information systems (GIS) and geostatistics. Ninety-seven soil samples taken at depths of 0–20 cm were collected during October 2010 and 2011 from the Matiyu small watershed (4.2 km2) of a hilly area in Shandong Province, northern China. The impacts of different land use types, elevation, vegetation coverage and other factors on SOC and STN spatial distributions were examined using GIS and a geostatistical method, regression-kriging. The results show that the concentration variations of SOC and STN in the Matiyu small watershed were moderate variation based on the mean, median, minimum and maximum, and the coefficients of variation (CV). Residual values of SOC and STN had moderate spatial autocorrelations, and the Nugget/Sill were 0.2% and 0.1%, respectively. Distribution maps of regression-kriging revealed that both SOC and STN concentrations in the Matiyu watershed decreased from southeast to northwest. This result was similar to the watershed DEM trend and significantly correlated with land use type, elevation and aspect. SOC and STN predictions with the regression-kriging method were more accurate than those obtained using ordinary kriging. This research indicates that geostatistical characteristics of SOC and STN concentrations in the watershed were closely related to both land-use type and spatial topographic structure and that regression-kriging is suitable for investigating the spatial distributions of SOC and STN in the complex topography of the watershed.

No comment yet.
 Scooped by Elpidio I F Filho

## WHAT IS GEOSTATISTICS? | statistics for all

You need not be a statistician to make good use of geostatistics, but you may need the assistance, support, guidance of a (geo?)statistician. A good engineer, ecologist, biologist, plant scientist, hydrologist, soil physicist already has a good ...
No comment yet.
 Scooped by Elpidio I F Filho

## USDA Textural Soil Classification

Included in the next version (1.0.3.1) of ggtern, will be a new data set, taken from the USDA Textural Soil Classification[1] which we can use to reproduce the original diagram published by the United Stated Department of Agriculture. Firstly let us load the packages and data: Reconstructing the USDA’s Original Plot Now let us construct…
The post USDA Textural Soil Classification appeared first on ggtern: ternary diagrams in R.
No comment yet.
 Scooped by Elpidio I F Filho

## Using apply, sapply, lapply in R

This is an introductory post about using apply, sapply and lapply, best suited for people relatively new to R or unfamiliar with these functions. There is a part 2 coming that will look at density plots with ggplot, but first I thought I would go on a tangent to give some examples of the apply family, as they come up a lot working with R.I have been comparing three methods on a data set. A sample from the data set was generated, and three different methods were applied to that subset. I wanted t
No comment yet.
 Scooped by Elpidio I F Filho

## RStudio v0.99 Preview: Graphviz and DiagrammeR

Soon after the announcement of htmlwidgets, Rich Iannone released the DiagrammeR package, which makes it easy to generate graph and flowchart diagrams using text in a Markdown-like syntax. The package is very flexible and powerful, and includes: Rendering of Graphviz graph visualizations (via viz.js) Creating diagrams and flowcharts using mermaid.js Facilities for mapping R objects into graphs, diagrams, and flowcharts. […]
No comment yet.
 Scooped by Elpidio I F Filho

## Introduction to text mining in R

Introduction to text mining in R. Learn how to perform text mining by cleaning text as input and make analysis such as comparison and commonality wordclouds
No comment yet.
 Scooped by Elpidio I F Filho

## An Introduction on How to Make Beautiful Charts With R and ggplot2

Adding a touch of color and design can help make more compelling visualizations, thanks to ggplot2 syntax and chaining capabilities.
No comment yet.
 Scooped by Elpidio I F Filho

## Spatial Variability Analysis of Soil Nutrients Based on GIS and Geostatistics: A Case Study of Yisa Township, Yunnan, China

Li Jing, Min Qingwen, Li Wenhua, Bai Yanying, Dhruba Bijaya G. C, and Yuan Zheng (2014) Spatial Variability Analysis of Soil Nutrients Based on GIS and Geostatistics: A Case Study of Yisa Township, Yunnan, China. Journal of Resources and Ecology: Vol. 5, No. 4, pp. 348-355. doi: http://dx.doi.org/10.5814/j.issn.1674-764x.2014.04.010
No comment yet.
 Scooped by Elpidio I F Filho

## GEOSTAT 2014 Bergen Day 4: Spatio-temporal geostatistics (screen 3)

“lecture by Ben Gräler http://www.geostat-course.org/Bergen_2014.&rdquo;
No comment yet.
 Scooped by Elpidio I F Filho

## Covariate selection with iterative principal component analysis for predicting physical soil properties

Abstract

Local and regional soil data can be improved by coupling new digital soil mapping techniques with high resolution remote sensing products to quantify both spatial and absolute variation of soil properties. The objective of this research was to advance data-driven digital soil mapping techniques for the prediction of soil physical properties at high spatial resolution using auxiliary data in a semiarid ecosystem in southeastern Arizona, USA. An iterative principal component analysis (iPCA) data reduction routine of reflectance and elevation covariate layers was combined with a conditioned Latin Hypercube field sample design to effectively capture the variability of soil properties across the 6250 ha study area. We sampled 52 field sites by genetic horizon to a 30 cm depth and determined particle size distribution, percent coarse fragments, Munsell color, and loss on ignition. Comparison of prediction models of surface soil horizons using ordinary kriging and regression kriging indicated that ordinary kriging had greater predictive power; however, regression kriging using principal components of covariate data more effectively captured the spatial patterns of soil property–landscape relationships. Percent silt and soil redness rating had the smallest normalized mean square error and the largest correlation between observed and predicted values, whereas soil coarse fragments were the most difficult to predict. This research demonstrates the efficacy of coupling data reduction, sample design, and geostatistical techniques for effective spatial prediction of soil physical properties in a semiarid ecosystem. The approach applied here is flexible and data-driven, allows incorporation of wide variety of numerically continuous covariates, and provides accurate quantitative prediction of individual soil properties for improved land management decisions and ecosystem and hydrologic models.

No comment yet.
 Scooped by Elpidio I F Filho

## short announcement: new R learning material

Coursera, hail to Coursera. Despite the uprising criticism on MOOCs and their footprint in the educational landscape at universities Coursera created an interesting R learning course. It is divided and scheduled for 4 weeks and has video-tutorials as well as written material. The guys over at RevolutionAnalytics packed it all together:

Content:
Setting working directory and getting helpHow to get helpData TypesSubsettingVectorized OperationsReading/Writing DataControl Structures in RWriting FunctionsAvoiding loops using xapplyPlottingRegular expressionsRegular expressions in RClasses and methods in R
No comment yet.
 Scooped by Elpidio I F Filho

## Spatial Distribution of Soil Organic Carbon and Total Nitrogen Based on GIS and Geostatistics in a Small Watershed in a Hilly Area of Northern China

PLOS One, Published Online 31 December 2013 By Gao Peng, Wang Bing, Geng Guangpo, and Zhang Guangcan "The spatial variability of soil organic carbon (SOC) and total nitrogen (STN) levels is importa...
No comment yet.
 Scooped by Elpidio I F Filho

## MODELING OF SOIL PARAMETERS SPATIAL UNCERTAINTY BY GEOSTATISTICS

No comment yet.
 Scooped by Elpidio I F Filho

## On the estimation of scale of fluctuation in geostatistics

(2014). On the estimation of scale of fluctuation in geostatistics. Georisk: Assessment and Management of Risk for Engineered Systems and Geohazards. ???aop.label???.
No comment yet.