Learn R Programming

ProbBayes (version 1.1)

beta_quantile: Displays a Quantile of a Beta Curve

Description

Displays a Quantile of a Beta Curve

Usage

beta_quantile(prob, shape_par, Color = "orange")

Arguments

prob

probability value of interest

shape_par

vector of shape parameters of the beta curve

Color

color of shading in the graph

Value

ggplot2 object containing the graphical display.

Examples

Run this code
# NOT RUN {
  # find the .50 quantile (the median)
  prob <- 0.5
  shape_par <- c(2, 5)
  beta_quantile(prob, shape_par)
  # find the .90 quantile (90th percentile)
  prob <- 0.9
  beta_quantile(prob, shape_par)
# }

Run the code above in your browser using DataLab