plot.frag.multi {fragility} | R Documentation |
Plot Method for "frag.multi" Objects
Description
Visualizes the fragility of multiple studies or multiple meta-analyses with binary outcomes.
Usage
## S3 method for class 'frag.multi'
plot(x, method, dir = "both", fragility = "FI", percentage = TRUE,
max.f = NULL, bar, names.arg, space = 0, breaks, freq, reverse = FALSE,
xlab, ylab, main = NULL, cex.marker, col.border, col.sig,
trun.marker = TRUE, ...)
Arguments
x |
an object of class |
method |
a character string indicating the method used to calculate the p-value when |
dir |
a character string indicating the type of fragility measures to be considered in the plot with a certain direction of the significance change. It can be one of |
fragility |
a character string of either |
percentage |
a logical value indicating whether the fragility quotient is presented in percentage ( |
max.f |
a positive numeric value indicating the maximum fragility index/quotient to be presented in the plot. Fragility indexes/quotients larger than |
bar |
a logical value indicating whether a bar plot ( |
names.arg |
a vector of names to be plotted below each bar. It is only used in the bar plot ( |
space |
the amount of space (as a fraction of the average bar width) left before each bar. The default is 0. It is only used in the bar plot ( |
breaks |
the breaks on the x axis in the histogram. It is only used when |
freq |
a logical value indicating whether the y axis in the histogram presents frequencies ( |
reverse |
a logical value indicating whether the groups of two directions of significance change. It is only used when |
xlab |
a label for the x axis. |
ylab |
a label for the y axis. |
main |
a main title for the plot. |
cex.marker |
the size of the text about the truncated fragility measures when the argument |
col.border |
the color to be used for the border of the bars in the bar plot or the histogram. |
col.sig |
a vector of two colors for the two directions of significance change. The default includes |
trun.marker |
a logical value indicating whether a text is placed at place of truncated fragility measures (the default is |
... |
other arguments that can be passed to |
Details
A bar plot or a histogram is generated. In the bar plot, the x axis presents the values of fragility indexes among the multiple studies or multiple meta-analyses, and the y axis presents the corresponding frequencies (counts). In the histogram, the x axis presents the intervals of fragility indexes or fragility quotients, and the y axis presents the corresponding frequencies (counts) or densities.
Value
None.
References
Lin L (2021). "Factors that impact fragility index and their visualizations." Journal of Evaluation in Clinical Practice, 27(2), 356–64. <doi: 10.1111/jep.13428>
Lin L, Chu H (2022). "Assessing and visualizing fragility of clinical results with binary outcomes in R using the fragility package." PLOS ONE, 17(6), e0268754. <doi: 10.1371/journal.pone.0268754>
See Also
frag.studies
and frag.mas
for assessing fragility of multiple studies and multiple meta-analyses, respectively.