Dear R studio
So I've made this plot but I would like to change the name of the groups so
"1" = "CRP < 10", "2 " = "CRP 10-50" , "3" = "CRP > 50"
Morover I would like to change the titel of each seperate plot
so "Uge -1" = "pre", "Uge 0 = dag 0" and so on.
Hope you can help
Best, Kathrine
ยดยดยดยด
my_comparisons <- list( c("1", "2"), c("2", "3"), c("1", "3") )
kw <- ggboxplot(samletdata, x = "CRPgroup1", y = "CTX",
color = "CRPgroup1", palette = "jco", facet.by = "Uge", add = "jitter", ylim=c(0,10),
short.panel.labs = FALSE) +
stat_compare_means(comparisons = my_comparisons, label = "p.signif")+
stat_compare_means(label.y = 9)
ggpar(kw,
title = "CRP",
xlab ="Figure 8A",
ylab = "CTX",
legend.title = "CRP group")
kw
ยดยดยดยด