Description Usage Arguments Author(s) Examples
View source: R/BinomialDistribution.R
Given the probability of success p
and the number of trials
n
, this function plots the resulting binomial distribution.
1 | BinomialDist(p = 0.5, n = 18)
|
p |
Numeric. Probability of success for each trial |
n |
Numeric. Number of trials |
Kevin Middleton (middletonk@missouri.edu)
1 2 3 4 5 6 7 8 9 10 | ## Not run:
if (require(manipulate)){
manipulate( BinomialDist(n = n), n = slider(2, 50) )
manipulate( BinomialDist(p = p), p = slider(0, 1) )
manipulate( BinomialDist(p = p, n = n),
p = slider(0, 1),
n = slider(2, 50) )
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.