plotnine.stat_ellipse

stat_ellipse(mapping=None, data=None, **kwargs)

Calculate normal confidence interval ellipse

{usage}

Parameters

type : Literal["t", "norm", "euclid"] = "t"

The type of ellipse. t assumes a multivariate t-distribution. norm assumes a multivariate normal distribution. euclid draws a circle with the radius equal to level, representing the euclidean distance from the center.

level : float = 0.95

The confidence level at which to draw the ellipse.

segments : int = 51

Number of segments to be used in drawing the ellipse.

See Also

geom_path

The default geom for this stat.