Learn R Programming

clttools (version 1.3)

expo.simu.plot: Histogram and Q-Q plot of simulated Exponential distribution

Description

Histogram and Q-Q plot of simulated Exponential distribution

Usage

expo.simu.plot(n, rate = 1, times, ylim = NULL, qqplot = FALSE)

Arguments

n
number of trials in one simulation
rate
vector of rates
times
number of simulations
ylim
range of y-axis
qqplot
an argument to output Q-Q plot or not, can be TRUE or FALSE

Value

Histogram and Q-Q plot of simulated Exponential distribution, red curve represents theoretical density

Examples

Run this code
expo.simu.plot(n = 5, rate = 2, times = 100)

Run the code above in your browser using DataLab