Description Usage Arguments Format Details Examples
Some panel generating functions of class grapcon_generator (package vcd) for terminal nodes associated with Kriging models.
For more details see node_bivplot.
1 2 3 4 5 6 |
mobobj |
[ |
id |
[ |
pop |
[ |
which |
[ |
pointcol |
[ |
pointcex |
[ |
linecol |
[ |
linetype |
[ |
ylines |
[ |
margins |
[ |
kriging.type |
[ |
trend.reestim |
[ |
... |
Additional arguments passed to callies. |
1 2 3 4 5 |
node_diagnosticKriging draws diagnostic plots (see also plot.km).
There are three different plots available, based on the results of leaveOneOut.km,
and which ones are drawn can be controlled via the which argument:
"loo"plot of fitted values against response values,
"res"plot of standardized residuals,
"qq"qqplot of standardized residuals.
The default is to draw all three diagnostic plots.
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 | if (require(DiceKriging)) {
d <- 2L
x <- seq(0, 1, length = 10L)
design <- expand.grid(x1 = x, x2 = x)
y <- apply(design, 1, branin)
df <- data.frame(y = y, design)
## no trend (formula = ~ 1)
m <- mobKriging(y ~ x1 + x2 | x1 + x2, data = df,
km.args = list(control = list(trace = FALSE)),
control = mob_control(objfun = deviance, minsplit = 20L, verbose = FALSE))
## default
plot(m, terminal_panel = node_diagnosticKriging(m,
linecol = "red", linetype = "dashed", kriging.type = "UK"))
## only leave-one-out plots
plot(m, terminal_panel = node_diagnosticKriging(m, which = c("loo"),
linecol = "red", linetype = "dashed", kriging.type = "UK"))
## only qq-plots
plot(m, terminal_panel = node_diagnosticKriging(m, which = "qq",
linecol = "grey", linetype = "dashed", kriging.type = "UK"))
## leave-one-out and residual plots
plot(m, terminal_panel = node_diagnosticKriging(m, which = c("loo", "res"),
linecol = "blue", linetype = "dashed", kriging.type = "UK"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.