ggproptest: Plot test of Equal or Given Proportions

Description Usage Arguments Examples

View source: R/ggproptest.R

Description

Visualise prop.test for testing the null that the proportions (probabilities of success) in several groups are the same, or that they equal certain given values.

Usage

1
2
ggproptest(t, alpha=0.05,colaccept="lightsteelblue1", 
colreject="gray84", colstat="navyblue")

Arguments

t

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

alpha

alpha level for ploting distribution, when prop.test is used on more than 2 samples

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
x  <- c(5, 8, 12)
y <- c(8, 9, 13)
pr_test <- prop.test(x, y)
pr_test
ggproptest(pr_test)

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