
Last chance! 50% off unlimited learning
Sale ends in
betaPlot(shape1 = 1.5, shape2 = 5, lines = NA, fill = rgb(0, 0.3, 0.8, 0.4), cumulative = TRUE, mar = c(2, 3, 3, 3), keeppar = FALSE, las = 1, main = paste("Beta density with\nalpha =", signif(shape1, 3), "and beta =", signif(shape2, 3)), ylim = lim0(y), xlim = 0:1, ylab = "", xlab = "", type = "l", lty = 1, col = par("fg"), ...)
dbeta
. DEFAULT: 1.5polygon
. DEFAULT: rgb(0,0.3,0.8, 0.4)par
. DEFAULT: c(2,3,3,3)plot
. DEFAULT: 1plot
. DEFAULT: paste("Beta density with\nalpha =", shape1, "and beta =", shape2)plot
like lwd, xaxs, cex.axis, etc.betaPlotComp
, normPlot
, dbeta
,
https://cran.r-project.org/package=denstrip,
https://cran.r-project.org/view=Distributions
betaPlot()
betaPlot(2,1)
betaPlot(0.5, 2)
# beta distribution is often used for proportions or probabilities
# overview of parameters
# alpha = number of successes + 1. beta = number of failures + 1
betaPlotComp()
# a bigger: HDI (Highest Density Interval) further to the right (1)
# b bigger: HDI more to the left (0)
# both bigger: narrower HDI, stronger peak
Run the code above in your browser using DataLab