| addlnorm | R Documentation | 
addlnorm estimates a log-normal distribution from the output of a histogram of a data set.
addlnorm(inhist, xdata, inc = 0.01)
| inhist | is the output from a call to 'hist' (see examples) | 
| xdata | is the data that is being plotted in the histogram. | 
| inc | defaults to a value of 0.01; is the fine grain increment used to define the normal curve. The histogram breaks should be coarse grained relative to this. | 
a 4 x N matrix of x and y values to be used to plot the fitted normal probability density function.Combined with estimates of mean(log(indata)) and log(sd(indata))
 oldpar <- par(no.readonly=TRUE)
 egdata <- rlnorm(200,meanlog=0.075,sdlog=0.5)
 outh <- hist(egdata,main="",col=2,breaks=seq(0,8,0.2))
 ans <- addlnorm(outh,egdata)
 lines(ans[,"x"],ans[,"y"],lwd=2,col=4) 
 par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.