plot_uncertainty {sensobol}R Documentation

Plot model output uncertainty

Description

It creates an histogram with the model output distribution.

Usage

plot_uncertainty(Y, n = NULL)

Arguments

Y

A numeric vector with the model output.

n

An integer with the initial sample size.

Value

a ggplot2 object.

Examples

# Define settings:
n <- 100; k <- 8; R <- 10
# Design the sample matrix:
A <- sobol_matrices(n = n, k = k, second = FALSE, third = FALSE)
# Compute the model output:
Y <- sobol_Fun(A)
# Plot the model output distribution:
plot_uncertainty(Y, n = n)

[Package sensobol version 0.2.2 Index]