Seaborn lmplot multiple regression issue

426 Views Asked by At

I am just using the minimum working example from Seaborn's lmplot and I can't seem to get multiple regressions to display correctly. I am able to get a single data set to display the linear regression, but when I have two groups I can't get the line to display? Here is the code for reference. I have also included a figure to show what it looks like.

import seaborn as sns; sns.set_theme(color_codes=True)
tips = sns.load_dataset("tips")
g = sns.lmplot(x="total_bill", y="tip", hue="smoker", data=tips,
               palette="Set1")

Linear regression

0

There are 0 best solutions below