x <- rbetapr(1e5, 5, 3, 2)
xx <- seq(0, 100, by = 0.1)
hist(x, 350, freq = FALSE, xlim = c(0, 100))
lines(xx, dbetapr(xx, 5, 3, 2), col = "red")
hist(pbetapr(x, 5, 3, 2))
plot(ecdf(x), xlim = c(0, 100))
lines(xx, pbetapr(xx, 5, 3, 2), col = "red")
Run the code above in your browser using DataLab