Learn R Programming

rankinma (version 0.2.2)

PlotBar: Illustrate bar chart of treatment ranking metrics

Description

PlotBar() is a function for illustrating bar chart in both separated and accumulative styles.

Usage

PlotBar(data, accum = NULL, merge = NULL, color = NULL, rotateX = NULL)

Value

PlotBar() returns a bar chart.

Arguments

data

DATA of metrics for treatment ranking.

accum

LOGIC value for indicating whether use accumulative probabilities. This parameter is only for probabilities but not global metrics of treatment ranking.

merge

LOGIC value for indicating whether merge bar charts together.

color

LIST of colors for treatments in a network meta-analysis, or CHARACTER of a color for the bar on not accumulated bar chart.

rotateX

NUMERIC value between 0 and 360 for rotating x axis labels of bars.

References

Van Valkenhoef, G., Tervonen, T., Zwinkels, T., De Brock, B., & Hillege, H. (2013). ADDIS: a decision support system for evidence-based medicine. Decision Support Systems, 55(2), 459-475.

See Also

GetMetrics, SetMetrics, PlotBeads, PlotLine, PlotHeat, PlotSpie

Examples

Run this code
## Not run:
#library(netmeta)
#data(Senn2013)
#nma <- netmeta(TE, seTE, treat1, treat2,
#studlab, data = Senn2013, sm = "SMD")

# Get SUCRA
#dataMetrics <- GetMetrics(nma, outcome = "HbA1c", prefer = "small", metrics = "SUCRA",
#model = "random", simt = 1000)

# Set data for rankinma
#dataRankinma <- SetMetrics(dataMetrics, tx = tx, outcome = outcome,
#metrics = SUCRA, metrics.name = "SUCRA")

# Illustrate bar plot
#PlotBar(dataRankinma)
## End(Not run)

Run the code above in your browser using DataLab