How to draw 2 regression lines on the same graph using Seaborn?

Viewed 69

Using value as x axis, count as y axis, a regression line could be drawn as follows

enter image description here

import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style("whitegrid")
tips = sns.load_dataset("tips")

ax = sns.jointplot("value", "count", data=df).plot_joint(sns.regplot)

plt.show()

I'd like to know how to draw another regression line using value as y axis, count as x axis on the same, like the below

enter image description here

0 Answers
Related