monet.plots.scatter
- monet.plots.scatter(df, x=None, y=None, title=None, label=None, ax=None, **kwargs)
Create a scatter plot with regression line.
- Parameters:
df (pandas.DataFrame) – DataFrame containing the data to plot.
x (str, optional) – Column name for x-axis values.
y (str, optional) – Column name for y-axis values.
title (str, optional) – Title for the plot.
label (str, optional) – Label for the plot (for legend).
ax (matplotlib.axes.Axes, optional) – Axes to plot on. If None, creates a new figure and axes.
**kwargs – Additional arguments passed to seaborn’s regplot. Common options include ‘scatter_kws’, ‘line_kws’, and ‘ci’.
- Returns:
The axes containing the plot.
- Return type: