doc/_docstrings/lmplot.ipynb
import seaborn as sns
sns.set_theme(style="ticks")
penguins = sns.load_dataset("penguins")
sns.lmplot(data=penguins, x="bill_length_mm", y="bill_depth_mm")
sns.lmplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", hue="species")
sns.lmplot(
data=penguins, x="bill_length_mm", y="bill_depth_mm",
hue="species", col="sex", height=4,
)
sns.lmplot(
data=penguins, x="bill_length_mm", y="bill_depth_mm",
col="species", row="sex", height=3,
)
sns.lmplot(
data=penguins, x="bill_length_mm", y="bill_depth_mm",
col="species", row="sex", height=3,
facet_kws=dict(sharex=False, sharey=False),
)