plot_scatter | R Documentation |
It creates scatter plots of the model output against the model inputs.
plot_scatter(data, N, Y, params, method = "point", size = 0.7, alpha = 0.2)
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. |
method |
The type of plot. If |
size |
Number between 0 and 1, argument of |
alpha |
Number between 0 and 1, transparency scale of |
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 scatter
plot_scatter(data = mat, Y = Y, N = N, params = params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.