How can i overlay an exponential distribution on a histogram of time intervals? The histogram looks like an exponential distribution. When I try to create the histogram in a sim
Make sure to use prob = TRUE in hist, and add = TRUE in curve
prob = TRUE
hist
add = TRUE
curve
z <- rexp(300,rate = 0.09) hist(z, prob = TRUE) curve(dexp(x, rate = 0.09), col = 2, lty = 2, lwd = 2, add = TRUE)