Description Usage Format References Examples
Soil profile data from Pinnacles National Monument, CA.
| 1 | 
A data frame with 60 observations on the following 21 variables.
groupa numeric vector
ida character vector
topa numeric vector
bottoma numeric vector
bound_distincta character vector
bound_topographya character vector
namea character vector
texturea character vector
propa numeric vector
structure_gradea character vector
structure_sizea character vector
structure_typea character vector
stickinessa character vector
plasticitya character vector
field_pha numeric vector
huea character vector
valuea numeric vector
chromaa numeric vector
http://casoilresource.lawr.ucdavis.edu/
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | data(sp1)
# convert colors from Munsell to hex-encoded RGB
sp1$soil_color <- with(sp1, munsell2rgb(hue, value, chroma))
# promote to SoilProfileCollection
depths(sp1) <- id ~ top + bottom
site(sp1) <- ~ group
# re-sample each profile into 1 cm (thick) depth slices
# for the variables 'prop', 'name', 'soil_color'
# result is a SoilProfileCollection object
s <- slice(sp1, 0:25 ~ prop + name + soil_color)
# plot, note slices
plot(s)
# aggregate all profiles along 1 cm depth slices, 
# using data from column 'prop'
s1 <- slab(sp1, fm= ~ prop)
# check median & IQR
library(lattice)
xyplot(top ~ p.q50 + p.q25 + p.q75, 
data=s1, type='S', horizontal=TRUE, col=1, lty=c(1,2,2), 
panel=panel.superpose, ylim=c(110,-5), asp=2)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.