ggttest: Student's t-test plot

Description Usage Arguments Examples

View source: R/ggttest.R

Description

Visualise one and/or two sample t-tests on vectors of data.

Usage

1
ggttest(t, colaccept="lightsteelblue1", colreject="grey84", colstat="navyblue")

Arguments

t

a list result of t.test of "htest" class

colaccept

color the acceptance area of the test

colreject

color for the rejection area of the test

colstat

color for the test statistic vline

Examples

1
2
3
4
5
6
7
8
t_test <- t.test(sleep$extra ~ sleep$group)
t_test
ggttest(t_test)


t_test2 <- t.test(x = 1:10, y = c(7:20)) 
t_test2
ggttest(t_test2)

gginference documentation built on Nov. 10, 2020, 5:10 p.m.