Skip to content

Commit b8dde31

Browse files
chore(spec): auto-polish facet-grid
Improved Data section format with explicit column types and sizes. Cleaned up plot_type (removed redundant 'grid' and 'multi-panel'), and standardized features tags to use canonical vocabulary ('faceted' and 'comparison'). Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5aacada commit b8dde31

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

plots/facet-grid/specification.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,12 @@ A grid of subplots where each cell shows the same type of plot for a different s
1313

1414
## Data
1515

16-
The visualization requires:
17-
- **Numeric variables**: For the base plot (x, y)
18-
- **Faceting variable(s)**: Categorical variables to split by (row, column)
19-
20-
Example structure:
21-
```
22-
X | Y | Row_Var | Col_Var
23-
-----|------|---------|--------
24-
1.2 | 3.4 | A | X
25-
2.3 | 4.5 | A | Y
26-
3.1 | 2.8 | B | X
27-
...
28-
```
16+
- `x` (numeric) - First axis variable for the base plot
17+
- `y` (numeric) - Second axis variable for the base plot
18+
- `row_facet` (categorical) - Variable to split rows
19+
- `col_facet` (categorical) - Variable to split columns
20+
- Size: 100–5000 points minimum (sufficient to show variation across facets)
21+
- Example: Palmer Penguins (split by species and island), or any dataset with 2+ categorical grouping variables
2922

3023
## Notes
3124

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
spec_id: facet-grid
22
title: Faceted Grid Plot
33
created: '2025-12-30T12:00:00Z'
4-
updated: '2025-12-30T12:00:00Z'
4+
updated: '2026-05-13T22:15:43Z'
55
issue: 2696
66
suggested: claude-code
77
tags:
8-
plot_type: [facet, grid, multi-panel]
8+
plot_type: [facet]
99
domain: [statistics, general]
10-
features: [subplots, conditioning, comparison]
10+
features: [faceted, comparison]
1111
data_type: [categorical, numeric]

0 commit comments

Comments
 (0)