Faceting is a great technique to simplify a complex visualization. Faceting splits a single plot into multiple smaller plots containing subset of data corresponding to a group. This tutorial we will see an example of how to facet a scatter plot with Altair in Python. Let us … [Read more...] about How To Facet a Scatter Plot with Altair?
Altair
Scatter Plot with Regression Line using Altair in Python
Adding regression line to scatter plot is a great way to understand the relationship between two numeric variables. In this post, we will see an example of using Altair to make a scatter plot with regression line using real world dataset. Let us load the packages we need. … [Read more...] about Scatter Plot with Regression Line using Altair in Python
How To Make Histogram with Median Line using Altair in Python?
In this post we will learn how to make a histogram with a median line using Altair in Python. This is also a great example illustrating the power of Altair's grammar of graphics. Let us load the packages needed to make histogram with a median or mean line using … [Read more...] about How To Make Histogram with Median Line using Altair in Python?
How to Make a Simple Histogram with Altair in Python?
Altair is the newest to Pyhon's Data Visualization landscape. In this post we will see a simple example of making a histogram using Python's Altair package. Let us import Altair as alt and also import data from vega_datasets. We will use weather data set from … [Read more...] about How to Make a Simple Histogram with Altair in Python?
Simple Scatter Plot with Altair in Python
In this post, we will see an example of making a simple scatter plot using Altair 4.0.0. Altair is one latest interactive data visualization library in Python. Altair is based vega and Vega-lite - A Grammar of Interactive Graphics. Let us load Seattle weather data from … [Read more...] about Simple Scatter Plot with Altair in Python