Learn R Programming

tidydice (version 0.0.6)

plot_binom: Plot a binomial distribution.

Description

Plot a binomial distribution generated with dice_binom() or coin_binom()

Usage

plot_binom(data, title = "Binomial distribution", color = "darkgrey",
  color_highlight = "red", 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

Run this code
# NOT RUN {
plot_binom(data = binom_dice(times = 10))
# }

Run the code above in your browser using DataLab