I - Compact Letter Display (CLD) One-Way ANOVA and CLD Visualization with R and ggplot2
ฝัง
- เผยแพร่เมื่อ 10 ก.พ. 2025
- #rprogramming #rprogramming #anovaplot #ggplot2 #emmeans #cld #compactletterdisplay
In this tutorial, you will learn how to effectively apply One-Way ANOVA to analyze your data and then compute the Critical Difference (CLD) values. We will dive into the world of R programming and utilize the powerful ggplot2 library to create stunning visualizations of the CLD results. Join us to unlock the secrets of statistical analysis and take your data interpretation skills to the next level!
This is a 3 part video tutorial
part 1 : one way ANOVA and CLD : • I - Compact Letter Dis...
part 2: Two way Anova and CLD : • 2 Compact letter displ...
part 3: Three way Anova and CLD : • 3 Compact letter displ...
code
one way anova with cld
library(emmeans)
library(multcomp)
library(multcompView)
library(palmerpenguins)
head(penguins)
summary(penguins)
str(penguins)
mod = aov(bill_length_mm~species,penguins)
summary(mod)
emmean = emmeans(mod,specs = "species")
emmean_cld = cld(emmean,alpha=0.05,Letters=letters)
library(ggplot2)
ggplot(emmean_cld,aes(species , emmean,label=.group))+
geom_col(fill="grey60")+
geom_errorbar(aes(ymin=emmean-SE, ymax=emmean+SE),width=0.1, size=0.7)+
geom_text(vjust=-0.5)+
theme_classic()
Facebook page:
/ rajendrachoureisc
Mail Id:
rajuchoure@gmail.com
youtube playlist:
• R programming tutorials
Thank you for this useful guidance!
You're very welcome!
Very useful, thanks rajendra
Thanks.
I am getting an error. Please help.
> emmean_cld
Share your codebabd if possible data.
Dear sir, the topic is very useful but the screen and visual of the video are invisible.... We are just listenin to you but see blurred screen of what you are doing on screen.... sory but %50 of profit of video is alredy gone as this state of the presentation.... Please do something about this invisibility problem of these series videos... With my respect.
Sorry to hear that. I tested the video on 65 inch screen, it's working fine without blurring. I tested it in an area with low network connectivity, it still worked fine. It's an HD quality video. TH-cam settings will allow you to select the resolution . Select the resolution about 480p. You can select the higher picture quality, instead of auto option.