Learn R Programming

sensobol (version 1.1.6)

plot_multiscatter: 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)

Value

A ggplot2 object.

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.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab