plot_sensitivity: Plot sensitivity indices

View source: R/sensitivity.R

plot_sensitivityR Documentation

Plot sensitivity indices

Description

Plots sensitivity indices as bar or pie charts.

Usage

plot_sensitivity(SAresults, ptype = "bar")

Arguments

SAresults

A list of sensitivity/uncertainty analysis results from plot_sensitivity().

ptype

Type of plot to generate - either "bar", "pie" or "box".

Details

To use this function you first need to run get_sensitivity(). Then enter the resulting list as the SAresults argument here.

See vignette("sensitivity").

This function replaces the now-defunct plotSA() from COINr < v1.0.

Value

A plot of sensitivity indices generated by ggplot2.

See Also

  • get_sensitivity() Perform global sensitivity or uncertainty analysis on a COIN

  • plot_uncertainty() Plot confidence intervals on ranks following a sensitivity analysis

Examples

# for examples, see `vignette("sensitivity")`
# (this is because package examples are run automatically and sensitivity analysis
# can take a few minutes to run at realistic settings)


COINr documentation built on Oct. 9, 2023, 5:07 p.m.