This stat computes points for plotting a distribution function. Fitting is done
using MASS::fitdistr()
when analytic solutions are not available.
stat_fitdistr(
mapping = NULL,
data = NULL,
geom = "path",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
dist = "dnorm",
start = NULL,
...
)
Aesthetics created using aes()
or aes_string()
.
A data frame.
A character string naming the geom used to make the layer.
Either a character string naming the position function used for the layer or a position object returned from a call to a position function.
If TRUE, do not emit a warning about missing data.
A logical. Should this layer be included in the legends? NA
,
the default, includes if any aesthetics are mapped. FALSE
never includes,
and TRUE
always includes.
If FALSE
, overrides the default aesthetics, rather than combining
with them.
A character string indicating the distribution to fit. Examples include
"dnorm"
, "dgamma"
, etc.
A list of starting values used by MASS::fitdistr()
when numerically
approximating the maximum likelihood estimate.
Additional arguments.
A gg object