Skip to content

Commit a3dc621

Browse files
committed
composable_plotting - fixed order of functions
1 parent ec18777 commit a3dc621

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/data_visualization/aog/composable_plotting.clj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,16 +2211,6 @@ tips
22112211

22122212
;; ### ⚙️ Faceting
22132213

2214-
(defn facet
2215-
"Split each view by a categorical column.
2216-
Default layout is a horizontal row of panels.
2217-
Pass :col as direction for a vertical column of panels."
2218-
([views col] (facet views col :row))
2219-
([views col direction]
2220-
(case direction
2221-
:row (facet-grid views nil col)
2222-
:col (facet-grid views col nil))))
2223-
22242214
(defn facet-grid
22252215
"Split each view by two categorical columns for a row × column grid.
22262216
Either column may be nil for a single-dimension facet."
@@ -2238,6 +2228,16 @@ tips
22382228
groups)))
22392229
views))
22402230

2231+
(defn facet
2232+
"Split each view by a categorical column.
2233+
Default layout is a horizontal row of panels.
2234+
Pass :col as direction for a vertical column of panels."
2235+
([views col] (facet views col :row))
2236+
([views col direction]
2237+
(case direction
2238+
:row (facet-grid views nil col)
2239+
:col (facet-grid views col nil))))
2240+
22412241
;; ### 🧪 Faceting in Action
22422242

22432243
(-> iris

0 commit comments

Comments
 (0)