prob_plot: Constructs a graph of a probability distribution

Description Usage Arguments Value Author(s) Examples

View source: R/prob_plot.R

Description

Constructs a graph of a discrete probability distribution

Usage

1

Arguments

d

data frame where the first two columns are the variable and associated probabilities

Value

A ggplot2 object containing the plot display

Author(s)

Jim Albert

Examples

1
2
3
  probability_df <- data.frame(x=1:5,
         Probability=c(.1, .2, .3, .3, .1))
  prob_plot(probability_df)

TeachBayes documentation built on May 1, 2019, 9:17 p.m.