powered by
addexp creates a histogram of x and overlays an exponential density function with \(\lambda = \frac{1}{mean}\).
addexp
x
iscamaddexp( x, main = "Histogram with exponential curve", xlab = deparse(substitute(x)), bins = NULL )
A histogram of x overlayed with an exponential 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 <- rexp(100, rate = 0.5) iscamaddexp(x) iscamaddexp(x, main = "Your Active Title", xlab = "Exponential Data", bins = 20)
Run the code above in your browser using DataLab