normal_tail_plot_q: Normal Distribution Density Plot with Tail Areas

Description Usage Arguments See Also

View source: R/plotting.R

Description

Plot of the normal distribution density function, with typical defaults used in introducing normal distributions, and tail areas shaded.

Usage

1
2
3
4
5
normal_tail_plot_q(q, mean = 0, sd = 1, lower.tail = TRUE,
  two.sided = FALSE, area_opts = list(), max.sd = 4, ...)

normal_tail_plot_p(p, mean = 0, sd = 1, lower.tail = TRUE,
  two.sided = FALSE, ...)

Arguments

q

Quantile to use for the tails

mean

Mean of the normal distribution

sd

Standard deviation of the normal distribution

lower.tail

logical; if TRUE, probabilities are P(X ≤q x), else probabilities are P(X > x).

two.sided

logical; if TRUE, two-sided tails. The tails are are at c(-q, q) if qunatiles are used, and at the quantiles such that P(X ≤q x) = p and P(X > x) if probabilities are used.

area_opts

list. Arguments passed to geom_dnorm_area.

max.sd

The x-axis of the plot is mean + c(-1, 1) * max.sd * sd .

...

Arguments passed to geom_dnorm_line.

p

Probabilities of the tail areas

See Also

Other Plots.of.the.normal.distribution: geom_dnorm_area; geom_dnorm_line; normal_area_plot_p, normal_area_plot_q; normal_plot


jrnold/ShinyIntroStats documentation built on May 19, 2019, 11:55 p.m.