plotTertiles: Plot elicted tertiles, median and plausible range for each...

View source: R/plotTertiles.R

plotTertilesR Documentation

Plot elicted tertiles, 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' tertiles: three intervals judged by the expert to be equally likely. The experts' medians are shown as dashed lines.

Usage

plotTertiles(
  vals,
  lower,
  upper,
  fs = 12,
  percentages = FALSE,
  expertnames = NULL,
  xl = NULL,
  xlabel = "X"
)

Arguments

vals

a matrix of elicited tertiles and medians: one column per expert, first row is the 33rd percentile, 2nd row is the median, last row is the 66th 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

percentages

set to TRUE to use percentages on the x-axis

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(-5, 0, 5, -10)
u <- c(15, 35, 50, 35)
v <- matrix(c(5, 8, 10,
 10, 15, 20,
 15, 18, 25,
 10, 20, 30),
 3, 4)
plotTertiles(vals = v, lower = l, upper  = u)

## End(Not run)

SHELF documentation built on Sept. 11, 2024, 6:54 p.m.