plot_multiscatter | R Documentation |
It plots all pairwise combinations of model inputs with the colour proportional the model output value.
plot_multiscatter(data, N, Y, params, smpl = NULL)
data |
The matrix created with |
N |
Positive integer, the initial sample size of the base sample matrix created with |
Y |
A numeric vector with the model output obtained from the matrix created with
|
params |
Character vector with the name of the model inputs. |
smpl |
The number of simulations to plot. The default is NULL. |
A ggplot2
object.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.