View source: R/overlayDensities.R
| iscamaddexp | R Documentation |
addexp creates a histogram of x and overlays an exponential density
function with \lambda = \frac{1}{mean}.
iscamaddexp(
x,
main = "Histogram with exponential curve",
xlab = deparse(substitute(x)),
bins = NULL
)
x |
A numeric vector representing the data to be plotted. |
main |
(optional) title for the plot. |
xlab |
(optional) x-axis label for the plot. |
bins |
(optional) number of bins for the histogram. |
A histogram of x overlayed with an exponential density function.
set.seed(0)
x <- rexp(100, rate = 0.5)
iscamaddexp(x)
iscamaddexp(x, main = "Your Active Title", xlab = "Exponential Data", bins = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.