plotnine.stat_function
stat_function(mapping=None, data=None, **kwargs)Superimpose a function onto a plot
{usage}
Parameters
fun : callable-
Function to evaluate.
n : int = 101-
Number of points at which to evaluate the function.
xlim : tuple = None-
xlimits for the range. The default depends on thexaesthetic. There is not anxaesthetic then thexlimmust be provided. args : Optional[tuple[Any] | dict[str, Any]] = None-
Arguments to pass to
fun.
See Also
geom_path-
The default
geomfor thisstat.