Note
Go to the end to download the full example code.
12.3.10.10.3. Linear regression#
<seaborn.axisgrid.FacetGrid object at 0x000002CC02095D90>
import seaborn as sns
sns.set_theme()
# Load the penguins dataset
penguins = sns.load_dataset("penguins")
# Plot sepal width as a function of sepal_length across days
g = sns.lmplot(
data=penguins, x="bill_length_mm", y="bill_depth_mm", hue="species", height=5
)
# Use more informative axis labels than are provided by default
g.set_axis_labels("Snoot length (mm)", "Snoot depth (mm)")
Total running time of the script: (0 minutes 0.569 seconds)