plotQuartiles {SHELF} | R Documentation |
Plot elicited quartiles, median and plausible range for each expert
Description
Displays a horizontal bar for each expert, to represent the expert's plausible range. The coloured sections indicate the experts' quartiles: four intervals judged by the expert to be equally likely. The experts' medians are shown as dashed lines.
Usage
plotQuartiles(
vals,
lower,
upper,
fs = 12,
expertnames = NULL,
xl = NULL,
xlabel = "X"
)
Arguments
vals |
a matrix of elicited quartiles and medians: one column per expert, first row is the 25th percentile, 2nd row is the median, last row is the 75th percentile. |
lower |
a vector of lower plausible limits: one per expert |
upper |
a vector of upper plausible limits: one per expert |
fs |
font size to be used in the plot |
expertnames |
vector of experts' names |
xl |
vector of limits for x-axis |
xlabel |
x-axis label |
Author(s)
Jeremy Oakley <j.oakley@sheffield.ac.uk>
Examples
## Not run:
l <- c(2, 1, 5, 1)
u <- c(95, 90, 65, 40)
v <- matrix(c(15, 25, 40,
10, 20, 40,
10, 15, 25,
5, 10, 20),
3, 4)
plotQuartiles(vals = v, lower = l, upper = u)
## End(Not run)
[Package SHELF version 1.10.0 Index]