View source: R/plotQuartiles.R
plotQuartiles | R Documentation |
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.
plotQuartiles(
vals,
lower,
upper,
fs = 12,
expertnames = NULL,
xl = NULL,
xlabel = "X"
)
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 |
Jeremy Oakley <j.oakley@sheffield.ac.uk>
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.