quartz/content/Obsidian Vault/pocket/Plot both median and mean in Altair plot.md
2022-06-07 14:39:39 -06:00

11 lines
692 B
Markdown

---
Title: Plot both median and mean in Altair plot
URL: https://stackoverflow.com/questions/56600974/plot-both-median-and-mean-in-altair-plot
Tags: #code
Excerpt: >
How can I plot both the mean and median in Altair, distinguished by a color encoding? Below is my first attempt, but it doesn't include the legend, and does not seem like the most elegant way.
---
https://stackoverflow.com/questions/56600974/plot-both-median-and-mean-in-altair-plot
Plot both median and mean in Altair plot
#code
How can I plot both the mean and median in Altair, distinguished by a color encoding? Below is my first attempt, but it doesn't include the legend, and does not seem like the most elegant way.