This stat makes it easy to superimpose a function on top of an existing plot. The function is called with a grid of evenly spaced values along the x axis, and the results are drawn (by default) with a line. stat_function( mapping = NULL, data = NULL, geom = "path", position = "identity", ..., fun, xlim = NULL, n = 101, args = list(), na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) Arguments
![Compute function for each x value — stat_function • ggplot2](https://cdn-ak-scissors.b.st-hatena.com/image/square/2184e544027d6971a4b7055942e4601182f9f6d1/height=288;version=1;width=512/https%3A%2F%2Fggplot2.tidyverse.org%2Flogo.png)