plot_scatter {sensobol} | R Documentation |
Scatterplots of the model output against the model inputs
plot_scatter(x, Y, n, params)
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. |
A ggplot object.
# 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)))