powered by
addlnorm creates a histogram of x and overlays a log normal density function.
addlnorm
x
iscamaddlnorm( x, main = "Histogram with log-normal curve", xlab = deparse(substitute(x)), bins = NULL )
A histogram of x overlayed with an log normal density function.
A numeric vector representing the data to be plotted.
Optional title for the plot
Optional x-axis label for the plot
Optional number of bins for the histogram.
set.seed(0) x <- rlnorm(100) iscamaddlnorm(x) iscamaddlnorm(x, main = "Your Active Title", xlab = "Log Normal Data", bins = 20)
Run the code above in your browser using DataLab