3.6.11.1.2. statsmodels.graphics.regressionplots.add_lowess¶
-
statsmodels.graphics.regressionplots.
add_lowess
(ax, lines_idx=0, frac=0.2, **lowess_kwargs)[source]¶ Add Lowess line to a plot.
Parameters: ax : matplotlib Axes instance
The Axes to which to add the plot
lines_idx : int
This is the line on the existing plot to which you want to add a smoothed lowess line.
frac : float
The fraction of the points to use when doing the lowess fit.
lowess_kwargs
Additional keyword arguments are passes to lowess.
Returns: fig : matplotlib Figure instance
The figure that holds the instance.