scientific-figure-assembly

Assemble multi-panel scientific figures from plots using R or Python.

77|4|Updated Jun 20, 2022
One-click install
npx skills add https://github.com/htlin222/dotfiles --skill scientific-figure-assembly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scientific-figure-assembly
Source: https://github.com/htlin222/dotfiles/tree/main/claude.symlink/skills/scientific-figure-assembly
Command: npx skills add https://github.com/htlin222/dotfiles --skill scientific-figure-assembly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of combining multiple individual plots into a single, publication-ready multi-panel figure with professional labeling.

Core Features & Use Cases

  • Multi-Panel Figure Creation: Combines plots using R (patchwork, cowplot) or Python (PIL).
  • Automatic Labeling: Adds panel labels (A, B, C, etc.) to figures.
  • High Resolution Output: Generates figures at 300 DPI for publication.
  • Use Case: You have three separate R plots (e.g., forest plots for pCR, EFS, OS) and need to combine them into a single Figure 1 for a journal submission, complete with labels 'A', 'B', and 'C'.

Quick Start

Use the scientific-figure-assembly skill to combine three R plot objects into a vertical figure named 'efficacy_outcomes.png' with labels A, B, and C.

Frequently Asked Questions about scientific-figure-assembly

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I combine multiple R plots into a single publication-ready figure?

To combine multiple R plots into a single publication-ready figure, this Skill assembles individual plot objects using R packages like patchwork or cowplot, arranging them vertically, horizontally, or in a grid layout with automatic panel labeling.

Can I add automatic panel labels like A, B, and C when combining plots for journal submission?

Yes, you can add automatic panel labels when combining plots for journal submission. The Skill generates multi-panel figures and automatically applies sequential alphabetical labels (A, B, C) to each individual plot panel for professional formatting.

Does this figure assembly tool support Python or is it only for R?

This figure assembly tool supports both Python and R. It combines multi-panel scientific figures using R packages like patchwork and cowplot, or utilizes Python's PIL library to merge individual plots into a single high-resolution output file.

What is the best way to export multi-panel figures at 300 DPI for publication graphics?

The best way to export multi-panel figures at 300 DPI for publication graphics is using this Skill, which directly outputs high-resolution images tailored for journal submission, ensuring professional quality and formatting consistency across combined plots.

What's the difference between using patchwork and cowplot for multi-panel figure creation?

The Skill utilizes both R packages for multi-panel figure creation. Patchwork and cowplot provide the underlying framework to arrange individual plots vertically, horizontally, or in a grid layout, facilitating consistent publication-quality formatting.