powered by
Plot a binomial distribution generated with binom_dice() or binom_coin()
plot_binom( data, title = "Binomial distribution", color = "darkgrey", color_highlight = "coral", label = NULL, label_size = 3, min_pct = 0.05, highlight = NULL )
ggplot object
data containing values for binomial distribution
title of the plot
color of bars
color of highlighted bars
add labels to plot?
size of label
surpress values < min_pct
vector of values to be highlighted
plot_binom(data = binom_dice(times = 10))
Run the code above in your browser using DataLab