norm_quantile_plot: A nice demonstration plot of a normal quantile function

View source: R/norm_density_plot.R

norm_quantile_plotR Documentation

A nice demonstration plot of a normal quantile function

Description

A nice demonstration plot of a normal quantile function

Usage

norm_quantile_plot(
  p_1,
  pop_mean = 0,
  pop_sd = 1,
  xmin = 0.001,
  xmax = 0.999,
  len = 1000,
  fill_cdf = rgb(0, 0.3, 0.8, 0.25),
  digits = 2,
  lty_density = 2,
  y_lab = "x",
  x_lab = "quantile",
  title_fmt = "quantile: %1$s\nx: %2$s\n"
)

Arguments

p_1

p

pop_mean

mean of the normal distribution to plot

pop_sd

standard deviation of the normal distribution to plot

xmin

minimum x value for the plot

xmax

maximum x value for the plot

len

number of points to calculate for the curve

fill_cdf

Color to fill background

digits

the number of siginifcant digits to display in the title

lty_density

the line type for the density curve

y_lab

label for the y-axis

x_lab

label for the x-axis

title_fmt

The format string, to be passed to sprintf() for the title

Value

A ggplot object


michaelfrancenelson/mfn.teaching.utils documentation built on Oct. 7, 2022, 1:13 a.m.