53 lines
1.2 KiB
Markdown
53 lines
1.2 KiB
Markdown
---
|
|
name: data-visualization
|
|
description: "Create publication-quality data visualizations. Use when: (1) Presenting results, (2) Exploratory data analysis, (3) Manuscript preparation, (4) Grant proposals, (5) Presentations."
|
|
allowed-tools: Read, Write, Bash
|
|
version: 1.0.0
|
|
---
|
|
|
|
# Data Visualization Skill
|
|
|
|
## Purpose
|
|
Create clear, publication-ready figures following best practices.
|
|
|
|
## Figure Types by Data
|
|
|
|
**Continuous Outcome:**
|
|
- Bar plots (means with error bars)
|
|
- Box plots (distributions)
|
|
- Violin plots (density)
|
|
|
|
**Categorical Data:**
|
|
- Bar charts (counts/proportions)
|
|
- Stacked bars (composition)
|
|
|
|
**Relationships:**
|
|
- Scatter plots (correlations)
|
|
- Line graphs (time series)
|
|
|
|
**Distributions:**
|
|
- Histograms
|
|
- Density plots
|
|
- Q-Q plots (normality)
|
|
|
|
## Best Practices
|
|
|
|
**Design:**
|
|
- Clear axis labels with units
|
|
- Legible font sizes (≥10pt)
|
|
- Color-blind friendly palettes
|
|
- Minimal chart junk
|
|
|
|
**Statistics:**
|
|
- Show individual data points when N < 50
|
|
- Error bars: 95% CI (not SE or SD)
|
|
- Asterisks for significance with p-value in caption
|
|
|
|
**Format:**
|
|
- High resolution (≥300 DPI)
|
|
- Vector format (PDF, SVG) preferred
|
|
- Grayscale-compatible
|
|
|
|
---
|
|
**Version:** 1.0.0
|