library(SSN)
data(modelFits)
#make sure fitSp has the correct path, will vary for each users installation
fitSp$ssn.object@path <- system.file("lsndata/MiddleFork04.ssn", package = "SSN")
resids <- residuals(fitSp,cross.validation = TRUE)
plot(resids)
## plot using user-defined breakpoints
brks <- seq(-3,2,by=1)
plot(resids, nclasses = 6, inflcol = "_resid_",
breaktype = "user", brks = brks, pch = 3)
## plot crossvalidation residuals
plot(resids, nclasses = 6, inflcol = "_resid.crossv_")
Run the code above in your browser using DataLab