plotNormal: Plot a normal distribution

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
2
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.

Author(s)

Joe Zemmels

Examples

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

jzemmels/statsfoRdummies documentation built on May 14, 2019, 12:55 a.m.