| stat_fitdistr {ggformula} | R Documentation | 
A stat for fitting distributions
Description
This stat computes points for plotting a distribution function.  Fitting is done
using MASS::fitdistr() when analytic solutions are not available.
Usage
stat_fitdistr(
  mapping = NULL,
  data = NULL,
  geom = "path",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  dist = "dnorm",
  start = NULL,
  ...
)
Arguments
mapping | 
 Aesthetics created using   | 
data | 
 A data frame.  | 
geom | 
 A character string naming the geom used to make the layer.  | 
position | 
 Either a character string naming the position function used for the layer or a position object returned from a call to a position function.  | 
na.rm | 
 If TRUE, do not emit a warning about missing data.  | 
show.legend | 
 A logical. Should this layer be included in the legends?   | 
inherit.aes | 
 If   | 
dist | 
 A character string indicating the distribution to fit.  Examples include
  | 
start | 
 A list of starting values used by   | 
... | 
 Additional arguments.  | 
Value
A gg object