Learn R Programming

topsa (version 0.1.0)

plot_topsa: plot topsa objects

Description

Plot method for objects of class topsa.

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab