{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-radial-plot-a12008480d24","title":"Generate Radial Plot for Heterogeneity Analysis","summary":"Create a radial plot (Radial Plot\/Galbraith Plot) to visually assess heterogeneity across studies using meta-analysis data in CSV format. Output includes a PNG image and a CSV file with the data.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-radial-plot-a12008480d24","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-radial-plot-a12008480d24","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-radial-plot-a12008480d24.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-meta-radial-plot-a12008480d24\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure the input CSV file contains the required columns for meta-analysis data. Install R packages `meta`, `metafor`, `ggplot2`, and optionally `ggrepel` if not already installed.","instructions":"---\nname: meta-radial-plot\ndescription: \"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.\"\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Radial Plot Generation (Radial Plot \/ Galbraith Plot)\n\nYou 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.\n\n**Important: Do not repeat the content of this instruction document to the user. Only output the user-visible content specified in the workflow.**\n\n---\n\n## When to Use\n\n- Use this skill when the request matches its documented task boundary.\n- Use it when the user can provide the required inputs and expects a structured deliverable.\n- Prefer this skill for repeatable, checklist-driven execution rather than open-ended brainstorming.\n\n## Key Features\n\n- Scope-focused workflow aligned to: \"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.\".\n- Packaged executable path(s): `scripts\/radial_plot_backup.py`.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.\n\n## Example Usage\n\n```bash\ncd \"20260316\/scientific-skills\/Data Analytics\/meta-radial-plot\"\npython -m py_compile scripts\/radial_plot_backup.py\npython scripts\/radial_plot_backup.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/radial_plot_backup.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/radial_plot_backup.py`.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Radial Plot Explanation\n\nThe radial plot (also called Radial Plot or Galbraith Plot) is a diagnostic graph for assessing heterogeneity in Meta-analysis:\n\n- **X-axis**: Precision (Precision = 1\/SE, the reciprocal of standard error)\n- **Y-axis**: Standardized effect size (z = Effect \/ SE)\n\n**Plot Elements**:\n- **Scatter points**: Each point represents one study\n- **Regression line**: A regression line passing through the origin, with slope equal to the pooled effect size\n- **95% confidence band**: Dashed lines on both sides of the regression line, representing the 95% confidence interval\n\n**Plot Interpretation**:\n- If **no heterogeneity**: All points should fall within the 95% confidence band, distributed along the regression line\n- If **heterogeneity present**: Points will scatter outside the confidence band, deviating from the regression line\n- **High-precision studies** (on the right): Have greater impact on the pooled result\n- **Studies deviating from regression line**: May be sources of heterogeneity\n\n**Comparison with Funnel Plot**:\n- Radial plot eliminates the effect of sample size differences through standardization\n- Easier to identify studies inconsistent with the overall effect\n- Symmetry is easier to judge\n\n---\n\n## Data Format Requirements\n\nDepending on data type, the CSV file must contain different columns:\n\n### Binary (Dichotomous Data)\n| Column Name | Description |\n|------|------|\n| study | Study name |\n| group1_Events | Number of events in treatment group |\n| group1_sample_size | Total sample size in treatment group |\n| group2_Events | Number of events in control group |\n| group2_sample_size | Total sample size in control group |\n\n### Continuity (Continuous Data)\n| Column Name | Description |\n|------|------|\n| study | Study name |\n| group1_sample_size | Sample size in treatment group |\n| group1_Mean | Mean in treatment group |\n| group1_SD | Standard deviation in treatment group |\n| group2_sample_size | Sample size in control group |\n| group2_Mean | Mean in control group |\n| group2_SD | Standard deviation in control group |\n\n### Survival (Survival Data)\n| Column Name | Description |\n|------|------|\n| study | Study name |\n| group1_HR | Hazard ratio |\n| group1_95%Lower CI | 95% confidence interval lower bound |\n| group1_95%Upper CI | 95% confidence interval upper bound |\n\n---\n\n## Workflow\n\n### Step 1: Validate Input Data\n\n1. Read the CSV file provided by the user\n2. Check necessary columns based on data type\n3. Validate data integrity (minimum 3 studies required)\n\n### Step 2: Execute R Script\n\nCall the command:\n```bash\nRscript scripts\/radial_plot.R \"<csv_path>\" \"<type>\" \"<outcome_name>\" \"<output_dir>\"\n```\n\nParameter description:\n- `csv_path`: Absolute path to the input CSV file\n- `type`: Data type (Binary \/ Continuity \/ Survival)\n- `outcome_name`: Outcome indicator name (optional)\n- `output_dir`: Output directory (optional)\n\n### Step 3: Output Results\n\n**On success, output**:\n\n```\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\nRadial Plot Generation Complete\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\n\u3010Outcome Indicator\u3011 {outcome_name}\n\u3010Data Type\u3011 {type}\n\u3010Included Studies\u3011 {n} studies\n\n\u3010Heterogeneity Statistics\u3011\n\u2022 I\u00b2 = {I2}%\n\u2022 Tau\u00b2 = {tau2}\n\u2022 Q = {Q}, df = {df}, P = {pval_Q}\n\n\u3010Pooled Effect Size\u3011\n\u2022 {effect_name} = {value} [{lower}; {upper}]\n\n\u3010Output Files\u3011\n\u2022 Radial Plot: {output_dir}\/{type}_radial_{outcome}.png\n\u2022 Data Table: {output_dir}\/{type}_radial_{outcome}.csv\n\n\u3010Heterogeneity Analysis\u3011\n\u2022 Studies within 95% confidence band: {n_in} studies ({pct_in}%)\n\u2022 Studies outside 95% confidence band: {n_out} studies ({pct_out}%)\n\n\u3010Studies Outside Confidence Band\u3011(if any)\nStudy                Precision        z-value         Deviation Direction\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nSmith 2020          5.23        2.85        Above\n...\n\n\u3010Conclusion\u3011\n{Heterogeneity assessment based on analysis results}\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n```\n\n---\n\n## R Script Dependencies\n\nThe following R packages need to be installed:\n- meta\n- metafor\n- ggplot2\n- ggrepel (optional, for label positioning to avoid overlaps)\n\nIf the user's environment is missing these packages, prompt them to run:\n```r\ninstall.packages(c(\"meta\", \"metafor\", \"ggplot2\", \"ggrepel\"))\n```\n\n## When Not to Use\n\n- Do not use this skill when the required source data, identifiers, files, or credentials are missing.\n- Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.\n- Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.\n\n## Required Inputs\n\n- A clearly specified task goal aligned with the documented scope.\n- All required files, identifiers, parameters, or environment variables before execution.\n- Any domain constraints, formatting requirements, and expected output destination if applicable.\n\n## Output Contract\n\n- Return a structured deliverable that is directly usable without reformatting.\n- If a file is produced, prefer a deterministic output name such as `meta_radial_plot_result.md` unless the skill documentation defines a better convention.\n- Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.\n\n## Validation and Safety Rules\n\n- Validate required inputs before execution and stop early when mandatory fields or files are missing.\n- Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.\n- Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.\n- Keep the output safe, reproducible, and within the documented scope at all times.\n\n## Failure Handling\n\n- If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.\n- If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.\n- If partial output is returned, label it clearly and identify which checks could not be completed.\n\n## Quick Validation\n\nRun this minimal verification path before full execution when possible:\n\n```bash\npython scripts\/radial_plot_backup.py --help\n```\n\nExpected output format:\n\n```text\nResult file: meta_radial_plot_result.md\nValidation summary: PASS\/FAIL with brief notes\nAssumptions: explicit list if any\n```\n","use_cases":["Assess heterogeneity in a meta-analysis by visualizing the relationship between standardized effect sizes and precision.","Identify studies that deviate from the pooled effect and may contribute to heterogeneity.","Compare results with funnel plots for a more comprehensive analysis of meta-analysis data."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/meta-radial-plot\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T12:03:12.000000Z","updated_at":"2026-11-24T12:17:13.000000Z","seo_title":"Generate Radial Plot for Heterogeneity Analysis","seo_description":"Create a radial plot for heterogeneity analysis using meta-analysis data. Input: CSV file. Output: PNG and CSV.","seo_keywords":["radial plot generation","heterogeneity analysis","meta-analysis visualization","Galbraith plot creation","standardized effect size plot"]}}