NavigationUser login |
AQPAQP / soilDB Demo: Dueling DendrogramsSubmitted by dylan on Wed, 2012-03-14 21:55.
Previously, soil profile comparison methods from the aqp package only took into account horizon-level attributes. As of last week the profile_compare() function can now accommodate horizon and site-level attributes. In other words, it is now possible to compute pair-wise dissimilarity between soil profiles using a combination of horizon-level properties (soil texture, pH, color, etc.) and site-level properties (surface slope, vegetation, soil taxonomy, etc.)-- continuous, categorical, or boolean. An example is presented below which is based on the loafercreek sample data set included with the soilDB package. Be sure to use the latest version of soilDB, 0.5-5 or later. Dissimilarity matrices created from horizon and site+horizon data are compared by placing their respective dendrograms back-to-back. Code from the ape package is used to facilitate dendrogram plotting, manipulation, and indexing. Blue line segments connect matching nodes from each dendrogram. Soil profiles with paralithic contact are marked with orange squares for clarity. ( categories: )
A Quick Demo of SoilProfileCollection Methods and Plotting FunctionsSubmitted by dylan on Wed, 2012-01-04 20:02.
Here is a quick demo of some of the new functionality in AQP as of version 0.99-9.2. The demos below are based on soil profiles from an archive described in (Carre and Girard, 2002) available on the OSACA page. A condensed version of the collection is available as a SoilProfileCollection object in the AQP sample dataset "sp5". UPDATE 2010-01-12 Syntax has changed slightly, as profileApply() now iterates over a list of SoilProfileCollection objects, one for each profile from the original object. AQP 0.9-9 is ready: 1.0 should be out by 2012-01-01 !Submitted by dylan on Thu, 2011-12-22 19:33.
Version 1.0 of AQP is nearly ready-- after nearly 3 years of development, 2 years on R-Forge, and 1+ year on CRAN. Just pushed version 0.9-9 to R-Forge, and it should be on CRAN within a couple days. Recent changes are listed below, clipped from the NEWS file. ( categories: )
Logistic Power Peak (LPP) Simulated Soil ProfilesSubmitted by dylan on Sat, 2011-11-12 21:01.
A friend of mine recently published a very interesting article on the pedologic interpretation of asymetric peak functions fit to soil profile data (Myers et al., 2011). I won't bother summarizing or paraphrasing the article here, as the original article is very accessible, rather I thought I would share some new functionality in AQP that was inspired by the article. While reading the article I thought that it would be interesting to use one of these peak functions, the logistic power peak (LPP) function, to simulate soil property depth-functions. Simulated values could be used to evaluate new algorithms with a set of tightly controlled properties that vary with depth. One of the nice aspects of these peak functions is that they can create a wide range of shapes that mimic common anisotropic depth-functions associated with pedogenic processes such as illuviation, ferrolysis, or seasonal fluctuation of groundwater levels. An example R session demonstrating the use of LPP-simulated soil property depth-functions is presented below. ( categories: )
New S4 Classes and Methods added to AQP (Algorithms for Quantitative Pedology) PackageSubmitted by dylan on Thu, 2011-10-20 21:52.
Thanks to ( categories: )
Combining Base+Grid GraphicsSubmitted by dylan on Tue, 2011-10-04 17:48.
R provides several frameworks for composing figures. Base graphics is the simplest, grid is more advanced, and the lattice/ggplot packages provide convenient abstractions of the grid graphics system. Multi-element figures can be readily created in base graphics using either par() or layout(), with analogous functions available in grid. Mixing the two systems is a little more complicated, somewhat fragile, but entirely possible. I recently needed to combine base+grid graphics on a single page; two sets of base graphics on the left, and the output from xyplot() (grid) on the right. Following some tips from Paul Murrell posted on r-help, the solution was fairly simple. A truncated example of the processes is listed below, corresponding to the attached figure. While the result was "good enough" for a quick summary, there are clearly some improvements that would make figure more useful. ( categories: )
Recent Updates in the aqp (Algorithms for Quantitative Pedology) Package for RSubmitted by dylan on Thu, 2011-09-15 04:44.
New version of our 'aqp' package for quantitative soils investigations, available on CRAN (version 0.99-5) and R-Forge (0.99-8). Some of the major changes are listed below:
-------------------------- aqp 0.99-8 (2011-09-14) --------------------------
* soil.slot() will now accept boundaries defining a 'slab' over which aggregates are computed
* soil.slot.multiple() now cleanly wraps soil.slot(), accepting all arguments
- these two changes make it possible to ask:
"what is the wt. mean value of some property within this slab, and among these groups?"
- soil.slot.multiple() now uses a formula interface: NOTE that this will break existing scripts (sorry)
-------------------------- aqp 0.99-7 (2011-09-01) --------------------------
* new functions for getting data out of PedonPC (MS Access) databases [windows only for now]
- get_site_data_from_pedon_db() : site and pedon aggregate data
- get_hz_data_from_pedon_db() : horizon level data
- get_colors_from_pedon_db() : formats and mixes multiple colors / horizon
+ implemented in mix_and_clean_colors()
* test_hz_logic() : basic function for testing horizon logic, returns TRUE/FALSE by ID
* parallel operations now NON-functional, while we wait for plyr to support doSMP...
* new ID plotting style for profile_plot() : handy when plotting large collections and/or long IDs
-------------------------- aqp 0.99-4 (2011-08-15) --------------------------
* code and documentation clean-up
* Soil Sata Access (SDA) query functions have been added
- mapunit_geom_by_ll_bbox() : get map unit geometry by bounding box
- MUKEYS_by_ll_bbox() : get map unit keys by bounding box
- SDA_query() : retrieve soil tabular data via query written in SQL
* additional customizations added to profile_plot
* two new sample data sets + examples
( categories: )
What would a 25th, 50th, and 75th percentile soil profile look like?Submitted by dylan on Wed, 2010-08-11 20:38.
I have mentioned the AQP package in previous entries. One of the functions in this package generates aggregate soil profile data, from a collection of soil profiles that are related by some factor: common lithology, common landscape position, and so on. Typically the mean, or median (50th percentile) is used to generate a new aggregate profile, that is representative of the original collection. Extending this idea, I thought that it would be interesting to generate aggregate profiles that are representative of the 25th and 75th percentiles as well. For the sake of clarity, lets call these three new profiles (25th, 50th, and 75th percentiles) Q25, Q50, and Q75. A 10 cm slicing interval was used as the basis upon which soil properties were aggregated. ( categories: )
New R Package 'aqp': Algorithms for Quantitative Pedology [updates]Submitted by dylan on Mon, 2010-08-09 16:37.
( categories: )
|