Learn R Programming

propagate (version 1.0-4)

plot.propagate: Plotting function for 'propagate' objects

Description

Creates two different plots from 'propagate' objects: i) a histogram of the evaluated results from the multivariate simulated data, along with a density curve and 95% confidence intervals. ii) a boxplot of the evaluated results from the multivariate simulated data, along with first- and second-order mean/s.d. and 95% confidence intervals.

Usage

# S3 method for propagate
plot(x, logx = FALSE, ...)

Arguments

x

an object returned from propagate.

logx

logical. Should the data be displayed on a logarithmic abscissa?

...

other parameters to hist or boxplot.

Value

A plot as described above.

Examples

Run this code
# NOT RUN {
EXPR1 <- expression(x^2 * sin(y))
x <- c(5, 0.01)
y <- c(1, 0.01)
DF1 <- cbind(x, y)
RES1 <- propagate(expr = EXPR1, data = DF1, type = "stat", 
                  do.sim = TRUE, verbose = TRUE)
plot(RES1)
# }

Run the code above in your browser using DataLab