View source: R/plot.propagate.R
| plot.propagate | R Documentation |
Creates a histogram (blue) of the Monte Carlo output, along with a density curve (red), the 100(1 - \alpha) % coverage intervals (GUM uncertainty framework (GUF): dashed black; Monte Carlo, probabilistically symmetric: solid black), median (orange) and mean (green) of the Monte Carlo output, with \alpha = alpha of the propagate call.
## S3 method for class 'propagate'
plot(x, logx = FALSE, breaks = 100, ...)
x |
an object returned from |
logx |
logical. If |
breaks |
numeric, passed to |
... |
other parameters to |
To prevent a few extreme values from compressing the histogram, the Monte Carlo output is restricted to the values between its 0.1 % and 99.9 % quantiles, i.e. the 0.1 % most extreme values on each side are omitted from the histogram and density curve (not from the intervals, median and mean, which are those of the propagate results).
A plot as described above.
Andrej-Nikolai Spiess
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",
nsim = 100000, alpha = 0.01, check = FALSE)
plot(RES1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.