Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions plots/facet-grid/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,12 @@ A grid of subplots where each cell shows the same type of plot for a different s

## Data

The visualization requires:
- **Numeric variables**: For the base plot (x, y)
- **Faceting variable(s)**: Categorical variables to split by (row, column)

Example structure:
```
X | Y | Row_Var | Col_Var
-----|------|---------|--------
1.2 | 3.4 | A | X
2.3 | 4.5 | A | Y
3.1 | 2.8 | B | X
...
```
- `x` (numeric) - First axis variable for the base plot
- `y` (numeric) - Second axis variable for the base plot
- `row_facet` (categorical) - Variable to split rows
- `col_facet` (categorical) - Variable to split columns
- Size: 100–5000 points minimum (sufficient to show variation across facets)
- Example: Palmer Penguins (split by species and island), or any dataset with 2+ categorical grouping variables

## Notes

Expand Down
6 changes: 3 additions & 3 deletions plots/facet-grid/specification.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
spec_id: facet-grid
title: Faceted Grid Plot
created: '2025-12-30T12:00:00Z'
updated: '2025-12-30T12:00:00Z'
updated: '2026-05-13T22:15:43Z'
issue: 2696
suggested: claude-code
tags:
plot_type: [facet, grid, multi-panel]
plot_type: [facet]
domain: [statistics, general]
features: [subplots, conditioning, comparison]
features: [faceted, comparison]
data_type: [categorical, numeric]
Loading