swh:1:snp:33a53053e50f7abe7d281cc0c803be827debf4a3
Tip revision: 48d0b1457c4d7f60524adbe61de8b574c2eb3cc6 authored by Edzer Pebesma on 22 June 2012, 17:21:36 UTC
version 1.0-12
version 1.0-12
Tip revision: 48d0b14
spplot.R
spplot.vcov = function(x, ...) {
basenames = sub(".pred", "", names(x)[grep(".pred",names(x))])
n = length(basenames)
names = NULL
skip = NULL
for (i in 1:n) {
skp = rep(TRUE, n)
pos = 1
if (i > 1) {
for (j in 1:(i-1)) {
names = c(names, paste("cov", basenames[j], basenames[i], sep = "."))
skp[pos] = FALSE
pos = pos + 1
}
}
names = c(names, paste(basenames[i], ".var", sep = ""))
skp[pos] = FALSE
skip = c(skip, skp)
}
spplot(x, names, skip = skip, layout = c(n,n), as.table = TRUE, ...)
}