powered by
Plot a binomial distribution generated with dice_binom() or coin_binom()
plot_binom(data, title = "Binomial distribution", color = "darkgrey", color_highlight = "red", label = NULL, label_size = 3, min_pct = 0.05, highlight = NULL)
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
ggplot object
# NOT RUN { plot_binom(data = binom_dice(times = 10)) # }
Run the code above in your browser using DataLab