visualize.it | R Documentation |
Acts as a director of traffic and first line of error handling regarding submitted visualization requests. This function should only be used by advanced users.
visualize.it(
dist = "norm",
stat = c(0, 1),
params = list(mu = 0, sd = 1),
section = "lower",
strict = c(0, 1)
)
dist |
a string that should be contain a supported probability
distributions name in R. Supported continuous distributions: |
stat |
a statistic to obtain the probability from. When using the
"bounded" condition, you must supply the parameter as |
params |
A list that must contain the necessary parameters for each
distribution. For example, |
section |
Select how you want the statistic(s) evaluated via
|
strict |
Determines whether the probability will be generated as a
strict (<, >) or equal to (<=, >=) inequality. |
Returns a plot of the distribution according to the conditions supplied.
James Balamuta
http://cran.r-project.org/web/views/Distributions.html
visualize.beta()
, visualize.chisq()
,
visualize.exp()
, visualize.gamma()
,
visualize.norm()
, visualize.unif()
,
visualize.binom()
, visualize.geom()
,
visualize.hyper()
, visualize.nbinom()
,
visualize.pois()
.
# Defaults to lower tail evaluation
visualize.it(dist = 'norm', stat = 1, list(mu = 3 , sd = 2), section = "lower")
# Set to evaluate the upper tail.
visualize.it(dist = 'norm', stat = 1, list(mu=3,sd=2),section="upper")
# Set to shade inbetween a bounded region.
visualize.it(dist = 'norm', stat = c(-1,1), list(mu=0,sd=1), section="bounded")
# Gamma distribution evaluated at upper tail.
visualize.it(dist = 'gamma', stat = 2, params = list(alpha=2,beta=1),section="upper")
# Binomial distribution evaluated at lower tail.
visualize.it('binom', stat = 2, params = list(n=4,p=.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.