Seaborn's lmplot helps use to examine linear relationships. Lmplot, linear model plot, performs a linear regression between x and y. We can also use the row and col argument to groupby a categorical variable and plot the linear correlation between two variables in the subgroups. The lmplot sits on top of the Seaborn's FacetGrid.
Send Data Science Teacher Brandyn a message if you have any questions
Data Groups:
Using kws arguments we can control the scatterplot and lineplot functions that make up the lmplot to add extra detail to our analysis.
In Seaborn's lmplot we can see the linear relationships in categories using the row and col argument.
Use Seaborn's lmplot to plot the linear relationships in the subcategories in our dataset.
linear model plot in seaborn