plot_t_dist: Plot t-Distribution and Shaded p-Value

View source: R/plot_t_dist.R

plot_t_distR Documentation

Plot t-Distribution and Shaded p-Value

Description

Plot t-Distribution and Shaded p-Value

Usage

plot_t_dist(x, shade_p_value = TRUE)

Arguments

x

t.test() or t_test() object

shade_p_value

Logical value indicating whether to shade the area under the curve corresponding to the p-value. Default is TRUE.

Value

Plot of the t-distribution. If shade_p_value=TRUE, the area under the curve corresponding to the p-value will also be shaded.

Examples

my_t = t.test(cars$speed, mu = 16, alternative = "less")
plot_t_dist(my_t)


zief0002/educate documentation built on July 27, 2023, 9:25 a.m.