plot_multiscatter: Pairwise combinations of model inputs with the colour...

View source: R/plot_sobol.R

plot_multiscatterR Documentation

Pairwise combinations of model inputs with the colour proportional the model output value.

Description

It plots all pairwise combinations of model inputs with the colour proportional the model output value.

Usage

plot_multiscatter(data, N, Y, params, smpl = NULL)

Arguments

data

The matrix created with sobol_matrices.

N

Positive integer, the initial sample size of the base sample matrix created with sobol_matrices.

Y

A numeric vector with the model output obtained from the matrix created with sobol_matrices.

params

Character vector with the name of the model inputs.

smpl

The number of simulations to plot. The default is NULL.

Value

A ggplot2 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)

# Plot scatterplot matrix
plot_multiscatter(data = mat, N = N, Y = Y, params = params)

sensobol documentation built on April 6, 2023, 5:22 p.m.