Learn R Programming

gginference (version 0.1.3)

ggvartest: F test plot

Description

Visualise F test to compare two variances

Usage

ggvartest(t, colaccept = "lightsteelblue1", 
colreject = "gray84", colstat = "navyblue")

Arguments

t

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

colaccept

color the acceptance area of the test, see colors

colreject

color for the rejection area of the test

colstat

color for the test statistic vline

Examples

Run this code
# NOT RUN {
x <- rnorm(50, mean = 0, sd = 2)
y <- rnorm(30, mean = 1, sd = 1)
var_test <- var.test(x, y)
var_test
ggvartest(var_test)

# }

Run the code above in your browser using DataLab