File tree Expand file tree Collapse file tree
src/data_visualization/aog Expand file tree Collapse file tree Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments