plotnine.stat_qq_line
stat_qq_line(mapping=None, data=None, **kwargs)Calculate line through quantile-quantile plot
{usage}
Parameters
distribution : str = "norm"-
Distribution or distribution function name. The default is norm for a normal probability plot. Objects that look enough like a stats.distributions instance (i.e. they have a ppf method) are also accepted. See scipy stats for available distributions.
dparams : dict = None-
Distribution-specific shape parameters (shape parameters plus location and scale).
quantiles : array_like = None-
Probability points at which to calculate the theoretical quantile values. If provided, must be the same number as as the sample data points. The default is to use calculated theoretical points, use to
alpha_betacontrol how these points are generated. alpha_beta : tuple = (3/8, 3/8)-
Parameter values to use when calculating the quantiles.
line_p : tuple = (0.25, 0.75)-
Quantiles to use when fitting a Q-Q line. Must be 2 values.
fullrange : bool = False-
If
Truethe fit will span the full range of the plot.
See Also
geom_qq_line-
The default
geomfor thisstat. plotting_positions-
Uses
alpha_betato calculate the quantiles.