Documentation Index
Fetch the complete documentation index at: https://mintlify.com/namakala/inappropriate-acid-suppressor-agent-use/llms.txt
Use this file to discover all available pages before exploring further.
visualize.R provides two plotting functions for meta-analysis results. vizForest() produces a publication-ready forest plot with a custom column layout saved to PDF, and vizFunnel() produces a contour-enhanced funnel plot for assessing publication bias. Both wrap functions from the meta package and accept ... for further customization.
vizForest()
Parameters
A
metaprop object from fitMetaprop() or fitSubMetaprop(). The object must have been fitted with prediction = TRUE to show the prediction interval row.Additional arguments passed to
meta::forest(). The most important is file for writing the plot to a PDF path. For subgroup forest plots, pass print.subgroup.name = FALSE to suppress the redundant subgroup header row.Returns
A forest plot object (returned invisibly). The primary output is the rendered PDF whenfile is specified via ....
Appearance and column layout
| Column | Source slot | Label |
|---|---|---|
| Study | studlab | Study |
| Sample size | Sample_size | Sample Size |
| Events | Inappropriate_indication | Events |
| Weight | w.random | Weight (%) |
| Proportion | effect | Proportion |
| Confidence interval | ci | 95% CI |
- Studies are sorted in ascending order of effect size (
sortvar = TE). - The x-axis runs from
0to1(xlim = c(0, 1)). backtransf = TRUEback-transforms Freeman-Tukey values so displayed proportions are on the natural scale.- The prediction interval is shown (
prediction = TRUE). - Right-side columns are suppressed (
rightcols = FALSE). - PDF encoding is set to
ISOLatin2to support special characters in author names.
Usage
_targets.R:
vizFunnel()
Parameters
A
meta object (such as a metaprop from fitMetaprop()) or an rma object from fitMetareg().Additional arguments passed to
meta::funnel(). Use these to control significance contour levels, axis labels, or symbol appearance.Returns
A funnel plot object (returned invisibly). The plot is rendered to the active graphics device.Plot type
vizFunnel() produces a contour-enhanced funnel plot (type = "contour"). Contour regions shade the areas of statistical significance, helping to distinguish between publication bias and genuine heterogeneity. Both common-effect and random-effects reference lines are drawn (common = TRUE, random = TRUE).
