Skip to content

Commit 3c31f3e

Browse files
committed
composable_plotting wip
1 parent 0a744b8 commit 3c31f3e

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

src/data_visualization/aog/composable_plotting.clj

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,15 +1438,6 @@ mpg
14381438
(lay (point {:color "steelblue" :size 6}))
14391439
plot)
14401440

1441-
;; Mixed layers: column-bound color on points,
1442-
;; fixed color on the regression line:
1443-
1444-
(-> iris
1445-
(view [[:sepal-length :sepal-width]])
1446-
(lay (point {:color :species})
1447-
(lm {:color "black"}))
1448-
plot)
1449-
14501441
;; ---
14511442

14521443
;; ## Histograms
@@ -1754,6 +1745,17 @@ mpg
17541745
(lm {:color :species}))
17551746
plot)
17561747

1748+
;; ### 🧪 Mixed Fixed and Column Aesthetics
1749+
;;
1750+
;; Column-bound color on scatter, fixed color on the regression line.
1751+
;; The black line gets no legend entry:
1752+
1753+
(-> iris
1754+
(view [[:sepal-length :sepal-width]])
1755+
(lay (point {:color :species})
1756+
(lm {:color "black"}))
1757+
plot)
1758+
17571759
;; ### 🧪 Smooth Curve (Loess)
17581760
;;
17591761
;; LOESS fits a local curve instead of a straight line:

0 commit comments

Comments
 (0)