Description Usage Arguments Value Author(s) Examples
Constructs a graph of a discrete probability distribution
1 | prob_plot(d, Color = "red", Size = 1.5)
|
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 |
A ggplot2 object containing the plot display
Jim Albert
1 2 3 | probability_df <- data.frame(x=1:5,
Probability=c(.1, .2, .3, .3, .1))
prob_plot(probability_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.