plot.sensobol: Visualization of first, total, second, third and fourth-order...

View source: R/plot_sobol.R

plot.sensobolR Documentation

Visualization of first, total, second, third and fourth-order Sobol' indices.

Description

It plots first, total, second, third and fourth-order Sobol' indices.

Usage

## S3 method for class 'sensobol'
plot(x, order = "first", dummy = NULL, ...)

Arguments

x

The output of sobol_indices.

order

If order = "first", it plots first and total-order effects. If order = "second", it plots second-order effects. If order = "third", it plots third-order effects. If order = "fourth", it plots third-order effects. Default is order = "first".

dummy

The output of sobol_dummy. Default is NULL.

...

Other graphical parameters to plot.

Value

A ggplot object.

Examples

# Define settings
N <- 1000; params <- paste("X", 1:3, sep = ""); R <- 10

# Create sample matrix
mat <- sobol_matrices(N = N, params = params)

# Compute Ishigami function
Y <- ishigami_Fun(mat)

# Compute and bootstrap Sobol' indices
ind <- sobol_indices(Y = Y, N = N, params = params, boot = TRUE, R = R)

# Plot Sobol' indices
plot(ind)

arnaldpuy/sensobol documentation built on Feb. 24, 2024, 12:32 a.m.