
Loading…

Everything this lesson covers — Introduction to Regression Plots, Code Setup and Data Loading, Regplot (Axis-level) and Lmplot (Figure-level) — in one visual map. Click any topic to open it, or download the full map as an image for revision.
Mind map
Click a topic to open or close it · drag to move · scroll to zoom · the download includes every topic, fully expanded
sns.get_dataset_names()df = sns.load_dataset('tips')df.head()df.info()penguins = sns.load_dataset('penguins')penguins.head()penguins.info()sns.regplot(data=df, x='total_bill', y='tip')plt.show()Remove Confidence Interval: ci=NoneAdjust Scatter Opacity: scatter_kws={'alpha': 0.5}Adjust Line Width: line_kws={'linewidth': 2}sns.regplot(data=penguins, x='flipper_length_mm', y='body_mass_g', ci=None, scatter_kws={'alpha': 0.1}, line_kws={'linewidth': 5})sns.lmplot(data=df, x='total_bill', y='tip')Hue (color): hue='smoker'Column: col='time'Row: row='time'Row and Column: row='sex', col='time'Remove Confidence Interval: ci=NoneChange Palette: palette='Set1'