Learn R Programming

TeachBayes (version 0.1.0)

prob_plot: Constructs a graph of a probability distribution

Description

Constructs a graph of a probability distribution

Usage

prob_plot(d)

Arguments

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

Value

A ggplot2 object containing the plot display

Examples

Run this code
  prob_plot(data.frame(x=1:5, prob=c(.1, .2, .3, .3, .1)))

Run the code above in your browser using DataLab