# NOT RUN {
library(aqp)
# sample data, an SPC
data(gopheridge, package='soilDB')
# get depth class
sdc <- getSoilDepthClass(gopheridge)
site(gopheridge) <- sdc
# diagnostic properties to consider, no need to convert to factors
v <- c('lithic.contact', 'paralithic.contact', 'argillic.horizon',
'cambic.horizon', 'ochric.epipedon', 'mollic.epipedon', 'very.shallow',
'shallow', 'mod.deep', 'deep', 'very.deep')
# base graphics
x <- diagnosticPropertyPlot(gopheridge, v, k=5)
# lattice graphics
x <- diagnosticPropertyPlot2(gopheridge, v, k=3)
# check output
str(x)
# }
Run the code above in your browser using DataLab