ggnorm: Plot the result of a pnorm function call

View source: R/teaching_utils.R

ggnormR Documentation

Plot the result of a pnorm function call

Description

Plot the result of the pnorm function. The syntax is the same as the pnorm function.

Usage

ggnorm(q = NULL, mean = 0, sd = 1, lower.tail = TRUE, within = TRUE)

Arguments

q

numeric; The quantile to evaluate the pnorm

mean

numeric; The mean of the normal distribution

sd

numeric; The standard deviation of the normal distribution

lower.tail

logical; if TRUE (default), probabilities are P[X \le x] otherwise, P[X > x].

Value

ggplot object

Examples

ggnorm(0.5, 0, 1, lower.tail = TRUE)


filippogambarota/filor documentation built on July 3, 2025, 8:39 p.m.