Lesson 4: Fundamentals of Visual Analytics, in-class exercise.
To start with, ggstatsplot
and tidyverse package will be launched using
library().
packages = c('ggstatsplot', 'tidyverse', 'PMCMRplus')
for (p in packages){
if(!require(p, character.only = T)){
install.packages(p)
}
}
exam <- read_csv("data/Exam_data.csv")
ggstatsplotIn the code chunk below, ggbetweenstats() is used to
build a visual for Bayes factors test on English score by race.
set.seed(1234)
ggbetweenstats(
data = exam,
x = RACE,
y = ENGLISH,
type = 'bayes'
)
