Intermediate Data Visualization with Seaborn
Chris Moffitt
Instructor


FacetGrid is foundational for many data aware gridsFacetGrid is created, the plot type must be mapped to the gridg = sns.FacetGrid(df, col='HIGHDEG')
g.map(sns.boxplot, 'Tuition',
order=['1', '2', '3', '4'])

catplot is a simpler way to use a FacetGrid for categorical datasns.catplot(x="Tuition", data=df,
col="HIGHDEG", kind="box")

FacetGrid() can also be used for scatter or regression plots g = sns.FacetGrid(df, col='HIGHDEG')
g.map(plt.scatter, 'Tuition', 'SAT_AVG_ALL')

lmplot plots scatter and regression plots on a FacetGrid sns.lmplot(data=df, x="Tuition", y="SAT_AVG_ALL",
col="HIGHDEG", fit_reg=False)

sns.lmplot(data=df, x="Tuition", y="SAT_AVG_ALL",
col="HIGHDEG", row="REGION")

Intermediate Data Visualization with Seaborn