PlotLine {rankinma} | R Documentation |
Illustrate line chart of treatment ranking metrics
Description
PlotLine() is a function for illustrating line chart in both simple and composite styles.
Usage
PlotLine(
data,
accum = NULL,
compo = NULL,
merge = NULL,
color = NULL,
rotateX = NULL
)
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. |
compo |
LOGIC value for indicating whether use composite line chart. This parameter is only for probabilities but not global metrics of treatment ranking. |
merge |
LOGIC value for indicating whether merge line charts together. |
color |
LIST of colors for treatments in a network meta-analysis, or CHARACTER of a color for the line on not composite line chart. |
rotateX |
NUMERIC value between 0 and 360 for rotating x axis labels of line chart. |
Value
PlotLine() returns a line chart.
References
Chaimani, A., Higgins, J. P., Mavridis, D., Spyridonos, P., & Salanti, G. (2013). Graphical tools for network meta-analysis in STATA. PloS one, 8(10), e76654.
See Also
GetMetrics
, SetMetrics
,
PlotBeads
, PlotBar
,
PlotHeat
, PlotSpie
Examples
## 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
#PlotLine(dataRankinma)
## End(Not run)