Quantile-Quantile Plot for Triangle Distributed Data
qqtriangle(
y,
a,
b,
c,
main = "Triangle Q-Q Plot",
xlab = "Theoretical Quantiles",
ylab = "Sample Quantiles",
...
)
the triangle distributed sample
the theoretical distribution triangle minimum parameter
the theoretical distribution triangle maximum parameter
the theoretical distribution triangle mode parameter
the plot title
the x-axis label
the y-axis label
other parameters passed to qqplot
a list of x-y coordinates on the plot
set.seed(10304)
xtest <- rtriangle(100, 1, 5, 2)
theta <- coef(triangle_mle(xtest))
qqtriangle(xtest, theta[1], theta[2], theta[3])