Author Archives

Prerequisites # Load required R packages library(tidyverse) library(rstatix) library(ggpubr) Data preparation We’ll use the self-esteem score dataset measured over...

How to Perform Paired Pairwise T-tests in R

Prerequisites # Load required R packages library(tidyverse) library(rstatix) library(ggpubr) Data preparation We’ll use the self-esteem score dataset measured over...

Prerequisites # Load required R packages library(tidyverse) library(rstatix) library(ggpubr) # Prepare the data and inspect a random sample of...

How to Perform T-test for Multiple Groups in R

Prerequisites # Load required R packages library(tidyverse) library(rstatix) library(ggpubr) # Prepare the data and inspect a random sample of...

# 1. Load required R packages suppressPackageStartupMessages(library(ggpubr)) suppressPackageStartupMessages(library(rstatix)) # 2. Data preparation df <- ToothGrowth df$dose <- factor(df$dose) #...

How to Create Stacked Bar Plots with Error Bars and P-values

# 1. Load required R packages suppressPackageStartupMessages(library(ggpubr)) suppressPackageStartupMessages(library(rstatix)) # 2. Data preparation df <- ToothGrowth df$dose <- factor(df$dose) #...

This article describes the essentials of R coding style best practices. It’s based on the tidyverse style guide. Google’s...

R Coding Style Best Practices

This article describes the essentials of R coding style best practices. It’s based on the tidyverse style guide. Google’s...