plot_scatter {sensobol}R Documentation

Scatterplots of the model output against the model inputs

Description

Scatterplots of the model output against the model inputs

Usage

plot_scatter(x, Y, n, params)

Arguments

x

A data table, data frame or matrix with the model inputs.

Y

Numeric vector with the model output.

n

Integer, sample size of the Sobol' matrix.

params

Vector with the name of the model inputs.

Value

A ggplot object.

Examples

# Define settings:
n <- 100; k <- 8; R <- 10
# Design the sample matrix:
A <- sobol_matrices(n = n, k = k, second = TRUE, third = TRUE)
# Compute the model output:
Y <- sobol_Fun(A)
# Plot scatterplots:
plot_scatter(x = A, Y = Y, n = n, params = colnames(data.frame(A)))

[Package sensobol version 0.2.2 Index]