Produces a plot of the Cost-Effectiveness Acceptability Curve (CEAC) against the willingness to pay threshold
ceac.plot(he, comparison = NULL, pos = c(1, 0), graph = c("base",
"ggplot2", "plotly"), ...)
A bcea
object containing the results of the Bayesian
modelling and the economic evaluation.
Selects the comparator, in case of more than two
interventions being analysed. Default as NULL plots all the comparisons
together. Any subset of the possible comparisons can be selected (e.g.,
comparison=c(1,3)
or comparison=2
).
Parameter to set the position of the legend (only relevant for
multiple interventions, ie more than 2 interventions being compared). Can be
given in form of a string (bottom|top)(right|left)
for base graphics
and bottom
, top
, left
or right
for ggplot2. It
can be a two-elements vector, which specifies the relative position on the x
and y axis respectively, or alternatively it can be in form of a logical
variable, with FALSE
indicating to use the default position and
TRUE
to place it on the bottom of the plot. Default value is
c(1,0)
, that is the bottomright corner inside the plot area.
A string used to select the graphical engine to use for
plotting. Should (partial-)match the three options "base"
,
"ggplot2"
or "plotly"
. Default value is "base"
.
If graph="ggplot2"
and a named theme object is supplied,
it will be added to the ggplot object. Additional arguments:
line_colors
: specifies the line colour(s) - all graph types.
line_types
: specifies the line type(s) as lty numeric values - all graph types.
area_include
: logical, include area under the CEAC curves - plotly only.
area_color
: specifies the AUC colour - plotly only.
If graph="ggplot2"
a ggplot object, or if graph="plotly"
a plotly object containing the requested plot. Nothing is returned when graph="base"
,
the default.
Baio, G., Dawid, A. P. (2011). Probabilistic Sensitivity Analysis in Health Economics. Statistical Methods in Medical Research doi:10.1177/0962280211419832.
Baio G. (2012). Bayesian Methods in Health Economics. CRC/Chapman Hall, London