barcode_plotter: Barcode plotter

Description Usage Arguments Value Examples

View source: R/barcode.R

Description

Barcode plotter

Usage

1
2
3
4
5
6
barcode_plotter(
  Ydat,
  Xdat,
  maxscale = rep(0.05, ncol(Xdat)),
  mc.cores = parallel::detectCores(logical = FALSE)
)

Arguments

Ydat

A vector with the model's dependent variable.

Xdat

A matrix with the model's input variables.

maxscale

Maximum radius allowed to find the barcode.

mc.cores

Number of cores used to estimate the barcodes in parallel. (See mclapply).

Value

A plot with the barcode for each variable.

Examples

1
2
3
4
5
6
7
8
9
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*100, -pi, pi), ncol = 3)
Y <- ishigami.fun(X)

barcode_plotter(Ydat = Y, Xdat = X, maxscale = 0.2, mc.cores = 2)

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