Submitted by dylan on Sat, 2013-06-15 22:23.
While on paternity leave I had an opportunity to test out periodic smoothing splines (within the framework of generalized additive models) on an interesting time-series-- an infant's feeding schedule.
Submitted by dylan on Wed, 2013-06-05 18:34.
Soil survey data are typically built upon a foundation of soil-landscape relationships that have been verified in the field.
Submitted by dylan on Tue, 2013-03-12 15:51.
Submitted by dylan on Sat, 2013-02-09 00:16.
Some recent updates to SoilWeb. New visualizations will be incorporated into SoilWeb soon.
Submitted by dylan on Mon, 2013-01-14 19:13.
The CDEC website provides access to a wide range in hydrologic data (stream flow, snow survey, etc.) collected in California. The following code and functions (attached at the bottom of the page) illustrate how to query CDEC, and graphically compare the May 2011 snow survey data with the historic record at 15 sites. Data in this format lend well to the "split-apply-combine" strategy. Integration of several figures (scatter plot, custom box-whisker plot) and graphical legend for bwplot is accomplished via the latticeExtra package. See in-line comments below for a more complete description of the code.
Submitted by dylan on Fri, 2013-01-04 22:17.
Several new AQP-related tutorials have been posted to the R-Forge project page.
Submitted by dylan on Wed, 2012-12-19 18:59.
Something fun to play with before the new year: experimental code in aqp for simulating soil profile data from a single "template" profile. The basic idea: simulate horizon thickness data using a family of Gaussian functions with mean defined by horizon thickness values found in the template and standard deviation defined by the user. Larger
Basic usage is demonstrated below, see package manual page for details. This function is only available in the version of
Submitted by dylan on Thu, 2012-11-08 00:06.
I have been thinking about a URL-based interface to basic Official Soil Series Description (OSD) data for a while now... something that when fed a URL, would return CSV-formatted records to the calling process. These type of interfaces can later be used to support more complicated systems, such as our smartphone interface to SoilWeb. URLs can be accessed like files in R, making it possible to do something like this:
Submitted by dylan on Wed, 2012-10-10 15:26.
The orientation of terrain surface (aspect) can have dramatic effects on landscape-scale variation in soil temperature and moisture. Summarizing aspect angle is complicated by the fact that sampled values are measured on a circular scale. The circular package for R can be used to summarize, model, and visualize this type of data.
An example function is presented below that demonstrates several components of the circular package: special data structures, summary functions, plotting functions and their application to circular data derived from measurements collected by compass. Spread and central tendency are depicted with a combination of circular histogram and kernel density estimate. The circular mean, and relative confidence in that mean are depicted with an arrow: longer arrow lengths correspond to greater confidence in the mean.
Submitted by dylan on Fri, 2012-08-31 20:45.
For some reason R is not happy with its 64-bit cousin when installing source packages:
* installing *source* package ‘XMLSchema’ ... ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded *** arch - i386 *** arch - x86_64 /Library/Frameworks/R.framework/Resources/bin/R: line 259: /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/R: Bad CPU type in executable /Library/Frameworks/R.framework/Resources/bin/R: line 259: /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/R: Unknown error: 0 ERROR: loading failed for ‘x86_64’ * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/XMLSchema’
Quick hack to get things moving along: throw out the 64-bit binary, located at:
rm -rf /Library/Frameworks/R.framework/Resources/bin/exec/x86_64/