prob_plot {ProbBayes} | R Documentation |
Constructs a graph of a probability distribution
Description
Constructs a graph of a discrete probability distribution
Usage
prob_plot(d, Color = "red", Size = 1.5)
Arguments
d |
data frame where the first two columns are the variable and associated probabilities |
Color |
color of line in plot |
Size |
width of line in plot |
Value
A ggplot2 object containing the plot display
Author(s)
Jim Albert
Examples
d <- data.frame(x=1:5,
Probability=c(.1, .2, .3, .3, .1))
prob_plot(d)
[Package ProbBayes version 1.1 Index]