stat_qq ¶
stat_qq(
mapping: FeatureSpec | None = None,
*,
geom: str | None = None,
**options: Any,
) -> LayerSpec
Plot theoretical quantiles of a sample (stat="qq"), ggplot2's stat_qq.
Parameters:
-
mapping(FeatureSpec, default:None) –Aesthetic mapping from
aes(); mapsample. -
geom(str, default:"qq") –Geom that draws the quantiles, e.g.
"point"or"line". -
**options(Any) –As
geom_qq().
Returns:
-
LayerSpec–The layer.
Examples:
>>> from ggrust import *
>>> data = {"height": [160.0, 172.0, 181.0, 168.0, 175.0]}
>>> plot = ggplot(data, aes(sample="height")) + stat_qq(distribution="t", dparams=[5])