Linear regression with marginal distributionsΒΆ

../_images/regression_marginals.png

Python source code: [download source: regression_marginals.py]

import seaborn as sns
sns.set(style="darkgrid", color_codes=True)

tips = sns.load_dataset("tips")
g = sns.jointplot("total_bill", "tip", data=tips, kind="reg",
                  xlim=(0, 60), ylim=(0, 12), color="r", size=7)