draw_two_p function

Plot of Distribution of Two Proportions

Plot of Distribution of Two Proportions

Constructs a graph of the probability distribution of two proportions

draw_two_p(prob_matrix, ...)

Arguments

  • prob_matrix: matrix of probabilities of two proportions with the rows and columns labeled by the values
  • ...: other arguments such as the title of the plot

Returns

ggplot2 object containing the graphical display.

Author(s)

Jim Albert

Examples

prob_matrix <- testing_prior() draw_two_p(prob_matrix, title="Testing Prior")