powered by
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.
prop.test
ggproptest(t, alpha=0.05,colaccept="lightsteelblue1", colreject="gray84", colstat="navyblue")
a list result of prop.test of "htest" class
alpha level for ploting distribution, when prop.test is used on more than 2 samples
color the acceptance area of the test
color for the rejection area of the test
color for the test statistic vline
# NOT RUN { x <- c(5, 8, 12) y <- c(8, 9, 13) pr_test <- prop.test(x, y) pr_test ggproptest(pr_test) # }
Run the code above in your browser using DataLab