plot_binom {tidydice} | R Documentation |
Plot a binomial distribution.
Description
Plot a binomial distribution generated with binom_dice() or binom_coin()
Usage
plot_binom(
data,
title = "Binomial distribution",
color = "darkgrey",
color_highlight = "coral",
label = NULL,
label_size = 3,
min_pct = 0.05,
highlight = NULL
)
Arguments
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 |
Value
ggplot object
Examples
plot_binom(data = binom_dice(times = 10))
[Package tidydice version 1.0.0 Index]