Learn R Programming

pse (version 0.3.4)

plotecdf: Uncertainty and sensitivity plots

Description

Plots the empirical cumulative density function or the partial rank correlation coefficient from an LHS object.

Usage

plotecdf(LHS, stack = FALSE, index.res, col, xlab = NULL, ...)
plotprcc(LHS, index.res, col, ylab = NULL, ...)

Arguments

LHS
The LHS object containing the simulation results to be plotted.
stack
If the results is a data.frame with several variables, stack=FALSE generates a series of plots, and stack=TRUE generates a single plot with the ECDF from all variables identified by different colors.
index.res
An optional vector indicating which columns from the results are to be plotted.
col
An optional vector indicating the colors to be used.
xlab, ylab
Label for the x axis (ecdf) or y axis(prcc). Uses the name provided in the res.names argument from the LHS function if left blank.
...
Additional parameters to be passed to the lower level plotting function.

Examples

Run this code
myLHS <- LHS(model=function(x) x[,1]+x[,2]*x[,3], factors=3, N=20, res.names="My Output")
plotecdf(myLHS, main="ECDF plot")
plotprcc(myLHS, main="PRCC plot")

Run the code above in your browser using DataLab