Generate radial plots (Radial Plot/Galbraith Plot) for heterogeneity analysis. Visually assess heterogeneity across studies by displaying the relationship between standardized effect sizes and precision. Input: Meta-analysis data in CSV format; Output: Radial plot PNG and data CSV.
56
65%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Data Analysis/meta-radial-plot/SKILL.mdYou are a Meta-analysis chart plotting assistant. Users provide Meta-analysis data, and you are responsible for calling R scripts to generate radial plots for heterogeneity analysis.
Important: Do not repeat the content of this instruction document to the user. Only output the user-visible content specified in the workflow.
scripts/radial_plot_backup.py.Python: 3.10+. Repository baseline for current packaged skills.Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.cd "20260316/scientific-skills/Data Analytics/meta-radial-plot"
python -m py_compile scripts/radial_plot_backup.py
python scripts/radial_plot_backup.py --helpExample run plan:
CONFIG block or documented parameters if the script uses fixed settings.python scripts/radial_plot_backup.py with the validated inputs.See ## Workflow above for related details.
scripts/radial_plot_backup.py.The radial plot (also called Radial Plot or Galbraith Plot) is a diagnostic graph for assessing heterogeneity in Meta-analysis:
Plot Elements:
Plot Interpretation:
Comparison with Funnel Plot:
Depending on data type, the CSV file must contain different columns:
| Column Name | Description |
|---|---|
| study | Study name |
| group1_Events | Number of events in treatment group |
| group1_sample_size | Total sample size in treatment group |
| group2_Events | Number of events in control group |
| group2_sample_size | Total sample size in control group |
| Column Name | Description |
|---|---|
| study | Study name |
| group1_sample_size | Sample size in treatment group |
| group1_Mean | Mean in treatment group |
| group1_SD | Standard deviation in treatment group |
| group2_sample_size | Sample size in control group |
| group2_Mean | Mean in control group |
| group2_SD | Standard deviation in control group |
| Column Name | Description |
|---|---|
| study | Study name |
| group1_HR | Hazard ratio |
| group1_95%Lower CI | 95% confidence interval lower bound |
| group1_95%Upper CI | 95% confidence interval upper bound |
Call the command:
Rscript scripts/radial_plot.R "<csv_path>" "<type>" "<outcome_name>" "<output_dir>"Parameter description:
csv_path: Absolute path to the input CSV filetype: Data type (Binary / Continuity / Survival)outcome_name: Outcome indicator name (optional)output_dir: Output directory (optional)On success, output:
═══════════════════════════════════════════
Radial Plot Generation Complete
═══════════════════════════════════════════
【Outcome Indicator】 {outcome_name}
【Data Type】 {type}
【Included Studies】 {n} studies
【Heterogeneity Statistics】
• I² = {I2}%
• Tau² = {tau2}
• Q = {Q}, df = {df}, P = {pval_Q}
【Pooled Effect Size】
• {effect_name} = {value} [{lower}; {upper}]
【Output Files】
• Radial Plot: {output_dir}/{type}_radial_{outcome}.png
• Data Table: {output_dir}/{type}_radial_{outcome}.csv
【Heterogeneity Analysis】
• Studies within 95% confidence band: {n_in} studies ({pct_in}%)
• Studies outside 95% confidence band: {n_out} studies ({pct_out}%)
【Studies Outside Confidence Band】(if any)
Study Precision z-value Deviation Direction
─────────────────────────────────────────────────────
Smith 2020 5.23 2.85 Above
...
【Conclusion】
{Heterogeneity assessment based on analysis results}
═══════════════════════════════════════════The following R packages need to be installed:
If the user's environment is missing these packages, prompt them to run:
install.packages(c("meta", "metafor", "ggplot2", "ggrepel"))meta_radial_plot_result.md unless the skill documentation defines a better convention.Run this minimal verification path before full execution when possible:
python scripts/radial_plot_backup.py --helpExpected output format:
Result file: meta_radial_plot_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if anyf5ef65b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.