Search⌘ K
AI Features

Categorical Scatter Plots

Explore how to visualize quantitative data across categories using Seaborn's stripplot and swarmplot. Learn to handle overlapping points with jitter and understand different plot orientations to reveal insights in categorical data.

We'll cover the following...

As discussed in the previous lesson, we have different scatter plots to show each observation at each level of the categorical variable.

Let’s now look at some more closely.

The stripplot()

The stripplot() provides a simple way to show the values of some quantitative variable across the level of a categorical variable. It draws a scatterplot where one variable is categorical.

Let’s plot the total_bill for each day in the week in our tips data to see how the stripplot() works.

C++
import seaborn as sns
tips = sns.load_dataset('tips')
sns.stripplot(x="day", y="total_bill", data=tips)

In the above strip plot, we can see that the data ...