plot_binom: Plot a binomial distribution.

View source: R/binom.R

plot_binomR 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))

tidydice documentation built on Feb. 16, 2023, 7:50 p.m.