...

/

Categorical Scatter Plots

Categorical Scatter Plots

Let's learn estimate plots for the categorical variable at each level of observation.

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.

Press + to interact
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 ...