plot_topsa: plot 'topsa' objects

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot method for objects of class topsa.

Usage

1
plot_topsa(topsaObj, nvar = "all", ...)

Arguments

topsaObj

an object of class topsa

nvar

it could be a sequence from 1 to the number of variables indicating which variables should be plotted. It could be the character 'all' for plot all the variables.

...

further arguments passed to the plot function

Value

A plot of generated with the output of topsa. For each variable in the model, it creates the plot of the corresponding manifold, its symmetric reflection and its symmetric difference.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ishigami.fun <- function(X) {
A <- 7
B <- 0.1
sin(X[, 1]) + A * sin(X[, 2])^2 + B * X[, 3]^4 * sin(X[, 1])
}

X <- matrix(runif(3*50, -pi, pi), ncol = 3)
Y <- ishigami.fun(X)

estimation <- topsa(Ydat = Y, Xdat = X)

plot_topsa(estimation)

maikol-solis/TopSA documentation built on Sept. 24, 2020, 12:53 a.m.