seaborn_objects_recipes.recipes.plotting#

Classes

PolyFitWithCI([alpha, order, gridsize])

Fit a polynomial of the given order and resample data onto predicted curve including confidence intervals.

class seaborn_objects_recipes.recipes.plotting.PolyFitWithCI(alpha: float = 0.05, order: int = 2, gridsize: int = 100)#

Bases: Stat

Fit a polynomial of the given order and resample data onto predicted curve including confidence intervals.

Parameters:
  • alpha (float) – The confidence level for the intervals.

  • order (int) – The order of the polynomial to fit. Higher orders can capture more complex relationships.

  • gridsize (int) – The number of points in the grid to which the polynomial is applied. Higher values result in a smoother curve.

Returns:

A Pandas DataFrame with the predicted curve’s ‘x’, ‘y’, ‘ymin’, and ‘ymax’ coordinates.

Return type:

pd.DataFrame

Methods

__call__(data, groupby, orient, scales)

Apply statistical transform to data subgroups and return combined result.