# Example 1: Exponential distribution
set.seed(123)
x <- rexp(100, rate = 2)
pp.plot(x, pexp, list(rate = 2))
# Example 2: Customizing the fitted line
pp.plot(x, pexp, list(rate = 2),
fit.line = TRUE)
# Example 3: Without regression line
pp.plot(x, pexp, list(rate = 2), fit.line = FALSE)
# Example 4: Display regression equation and R² value
pp.plot(x, pexp, list(rate = 2))
# Example 5: For a user defined distribution
# Exponentiated Exponential Power (EEP) Distribution
# Data
x <- waiting
pp.plot(x,
params = list(alpha=0.3407, lambda=0.6068, theta=7.6150),
pfun = pgen.exp.power, fit.line=TRUE)
Run the code above in your browser using DataLab