View source: R/plot.rankogram.R
plot.rankogram | R Documentation |
This function produces a rankogram, i.e., an image plot of ranking probabilities for all treatments.
## S3 method for class 'rankogram'
plot(
x,
type = if (cumulative.rankprob) "step" else "bar",
pooled = ifelse(x$random, "random", "common"),
sort = TRUE,
trts,
cumulative.rankprob = x$cumulative.rankprob,
ylim,
ylab,
nchar.trts = x$nchar.trts,
...
)
x |
An object of class |
type |
A character string specifying whether a "bar" chart, a "line" graph, or "step" functions should be drawn. Can be abbreviated. |
pooled |
A character string indicating whether results for the
common ( |
sort |
A logical indicating whether treatments should be sorted by decreasing SUCRAs. |
trts |
Treatment(s) to show in rankogram. |
cumulative.rankprob |
A logical indicating whether cumulative ranking probabilites should be shown. |
ylim |
The y limits (min, max) of the plot. |
ylab |
A label for the y-axis. |
nchar.trts |
A numeric defining the minimum number of characters used to create unique treatment names. |
... |
Additional graphical arguments (ignored at the moment). |
This function produces an image plot of (cumulative) ranking
probabilities for all treatments as a bar graph, a line graph or as
step functions (argument type
).
By default (argument pooled
), results for the random effects
model are shown if a network meta-analysis was conducted for both
the common and random effects model.
Treatments are sorted according to their mean effects if argument
sort = TRUE
(default). A subset of treatments can be
specified using argument trts
.
Cumulative ranking probabilites are shown if
cumulative.rankprob = TRUE
. By default, step functions are
shown for cumulative ranking probabilites.
Theodoros Papakonstantinou dev@tpapak.com, Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
Salanti G, Ades AE, Ioannidis JP (2011): Graphical methods and numerical summaries for presenting results from multiple-treatment meta-analysis: an overview and tutorial. Journal of Clinical Epidemiology, 64, 163–71
rankogram
data(Woods2010)
p1 <- pairwise(treatment, event = r, n = N, studlab = author,
data = Woods2010, sm = "OR")
net1 <- netmeta(p1, small.values = "good")
ran1 <- rankogram(net1, nsim = 100)
ran1
plot(ran1)
plot(ran1, type = "l")
plot(ran1, cumulative.rankprob = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.