Python Data Visualization Transcripts
Chapter: Altair
Lecture: Faceting

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Horizontal and vertical concatenation are useful when we have very different types of charts that we
0:07 want to combine in visualization. But what you're going to want to do more frequently
0:12 is to facet our charts and altair supports this and this example I am creating scatter plots and I'm telling it to facet by the row class summary.
0:23 So what that does is it creates multiple charts where the data is filtered by that class summary, so you can see the cars,
0:32 the other and and so on for a chart on each row if we want a different visualization because those rows don't break down nicely.
0:43 We can say that we want to facet by class summary and maybe do two columns So that will do a side by side and give us a grid of six
0:53 different visualizations. So this is a way to control that faceting. One of the things that's unique about altair is that you can create your chart.
1:03 So here we'll create our base chart and then we will tell it to facet. So this is another way to control the fasting,
1:10 like we've done so far. So we have our grid of individual plots and this makes fascinating by rows or columns very easy and intutive for altair.


Talk Python's Mastodon Michael Kennedy's Mastodon