Learn R Programming

radiant.basics (version 1.6.0)

plot.prob_binom: Plot method for the probability calculator (binomial)

Description

Plot method for the probability calculator (binomial)

Usage

# S3 method for prob_binom
plot(x, type = "values", ...)

Arguments

x

Return value from prob_binom

type

Probabilities ("probs") or values ("values")

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/basics/prob_calc.html for an example in Radiant

See Also

prob_binom to calculate results

summary.prob_binom to summarize results

Examples

Run this code
result <- prob_binom(n = 10, p = 0.3, ub = 3)
plot(result, type = "values")

Run the code above in your browser using DataLab