powered by
Constructs a graph of a discrete probability distribution
prob_plot(d, Color = "red", Size = 1.5)
data frame where the first two columns are the variable and associated probabilities
color of line in plot
width of line in plot
A ggplot2 object containing the plot display
# NOT RUN { d <- data.frame(x=1:5, Probability=c(.1, .2, .3, .3, .1)) prob_plot(d) # }
Run the code above in your browser using DataLab