plot_binom {tidydice} | R Documentation |
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
)
data |
data containing values for binomial distribution |
title |
title of the plot |
color |
color of bars |
color_highlight |
color of highlighted bars |
label |
add labels to plot? |
label_size |
size of label |
min_pct |
surpress values < min_pct |
highlight |
vector of values to be highlighted |
ggplot object
plot_binom(data = binom_dice(times = 10))