seaborn.
residplot
(x, y, data=None, lowess=False, x_partial=None, y_partial=None, order=1, robust=False, dropna=True, label=None, color=None, scatter_kws=None, line_kws=None, ax=None)¶Plot the residuals of a linear regression.
This function will regress y on x (possibly as a robust or polynomial regression) and then draw a scatterplot of the residuals. You can optionally fit a lowess smoother to the residual plot, which can help in determining if there is structure to the residuals.
Parameters: | x : vector or string
y : vector or string
data : DataFrame, optional
lowess : boolean, optional
{x, y}_partial : matrix or string(s) , optional
order : int, optional
robust : boolean, optional
dropna : boolean, optional
label : string, optional
color : matplotlib color, optional
{scatter, line}_kws : dictionaries, optional
ax : matplotlib axis, optional
|
---|---|
Returns: | ax: matplotlib axes
|