Learn R Programming

gginference (version 0.1.3)

ggcortest: Plot test for association between paired samples

Description

Visualise test for association between paired samples, using Pearson's product moment correlation coefficient.

Usage

ggcortest(t, colaccept="lightskyblue1", colreject="grey94", colstat="navy")

Arguments

t

a list result of cor.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

Run this code
# NOT RUN {
corr_test <- cor.test(iris$Sepal.Length, iris$Sepal.Width)
corr_test
ggcortest(corr_test)

# }

Run the code above in your browser using DataLab