plotBeta: Density Function, Distribution Function and/or Quantile...

Description Usage Arguments Value Examples

View source: R/beta.R

Description

plotBeta represents density, distribution and/or quantile functions associated with a Beta distribution with parameters shape1 and shape2.

Usage

1
plotBeta(shape1, shape2, type = "b", col = "black")

Arguments

shape1, shape2

parameters of the Beta distribution (mean equal to shape1/(shape1+shape2)

type

a character string giving the type of plot desired. The following values are possible: "b" (default) for density function, distribution function and quantile function representations together, "dis" for distribution function representation, "den" for density function representation and "q" for quantile function representation.

col

a single colour associated with the different representations; default to "black".

Value

This function is called for the side effect of drawing the plot.

Examples

1
2
3
4
5
6
shape1=1;shape2=1
plotBeta(shape1,shape2)
plotBeta(shape1,shape2,col="red")
plotBeta(shape1,shape2,type="q")
plotBeta(shape1,shape2,type="dis")
plotBeta(shape1,shape2,type="den")

LearningStats documentation built on April 21, 2021, 9:06 a.m.