plot_t_tails: Plot a t distribution with one or both tails shaded

View source: R/norm_density_plot.R

plot_t_tailsR Documentation

Plot a t distribution with one or both tails shaded

Description

Plot a t distribution with one or both tails shaded

Usage

plot_t_tails(
  lower_tail = 0.025,
  upper_tail = 0.925,
  df_sample = 30,
  ncp_sample = 0,
  xmin = NULL,
  xmax = NULL,
  len = 1000,
  fill_lower = rgb(0, 0.3, 0.8, 0.25),
  fill_middle = rgb(0, 0, 0, 0),
  fill_upper = rgb(0, 0.3, 0.8, 0.25),
  y_lab = "f(x)",
  x_lab = "x"
)

Arguments

lower_tail

lower tail to plot

upper_tail

upper tail to plot

df_sample

sample degrees of freedom

ncp_sample

non-centrality parameter

xmin

lower limit of x values to include

xmax

upper limit of x values to include

len

how many points to generate?

fill_lower

fill color for the lower tail

fill_middle

fill color for the non-tail part of the pdf

fill_upper

fill color for the upper tail

y_lab

label for x axis

x_lab

label for y axis


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