Skip to contents

stamp_dbinom returns a plot that plots the number of successes with probabilities given the probability of a single trial and the total number of trials.

Usage

stamp_dbinom(single_trial_prob = 0.5, num_trials = 10, annotate = FALSE)

Arguments

single_trial_prob

numeric value between 0 and 1

num_trials

positive integer which is the total number of trials

Value

A plot that plots the number of success with associated probabilities

Examples

library(ggplot2)
ggplot() +
stamp_dbinom()


ggplot() +
stamp_dbinom(single_trial_prob = 1/12,
num_trials = 3,
annotate=TRUE)