Description Usage Arguments Value Author(s) Examples
Returns a ggplot or plotly object of a normal distribution with a specified significance level
1 2 | plotNormal(mu = 0, sigma = 1, alpha = 0.05, obs = NULL,
direction = intToUtf8("8800"), plotly = FALSE)
|
mu |
mean of normal distribution |
sigma |
standard deviation of normal distribution |
alpha |
significance level |
obs |
observed z-statistic (randomly generated if left blank) |
direction |
direction of alternative hypothesis |
plotly |
specifies whether a plotly object is desired |
A ggplot or plotly object, depending on whether the plotly argument was specified TRUE or FALSE.
Joe Zemmels
1 2 | plotNormal() #default standard normal ggplot
plotNormal(mu=5,sigma=2,alpha=.1,obs=.5,plotly=TRUE) #customized plotly
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.