Returns a ggplot or plotly object of a normal distribution with a specified significance level

plotNormal(mu = 0, sigma = 1, alpha = 0.05, obs = NULL,
  direction = intToUtf8("8800"), plotly = FALSE)

Arguments

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

Value

A ggplot or plotly object, depending on whether the plotly argument was specified TRUE or FALSE.

Examples

plotNormal() #default standard normal ggplot
plotNormal(mu=5,sigma=2,alpha=.1,obs=.5,plotly=TRUE) #customized plotly