Chubing - 1 year ago 165

R Question

I want to plot an exponential distribution, something like this for example:

But I only know how to simulate a data frame that follow a exponential distribution and plot it.

`data = data.frame(x=rexp(n = 100000, rate = .65))`

m <- ggplot(data, aes(x=data$x))

m + geom_density()

From which I get:

How can I plot the true exponential distribution instead of a sampled version of the distribution?

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Answer Source

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**