plot.sensobol | R Documentation |
It plots first, total, second, third and fourth-order Sobol' indices.
## S3 method for class 'sensobol'
plot(x, order = "first", dummy = NULL, ...)
x |
The output of |
order |
If |
dummy |
The output of |
... |
Other graphical parameters to plot. |
A ggplot
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)
# Compute and bootstrap Sobol' indices
ind <- sobol_indices(Y = Y, N = N, params = params, boot = TRUE, R = R)
# Plot Sobol' indices
plot(ind)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.