Last active
November 19, 2021 18:35
-
-
Save kstawiski/5adb9d4d37b0b6f6fb21bc0d7adb17a4 to your computer and use it in GitHub Desktop.
[R] Paired plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggpubr) | |
library(ggsci) | |
temp = data.frame("Przyjęcie" = dane$Poczatkowe.stezenie.kreatyniny.w.trakcie.hospitalizacji., "Wypis" = dane$Stezenie.kreatyniny.przy.wypisie.) | |
a = ggpaired(temp, cond1 = "Przyjęcie", cond2 = "Wypis", palette = "npg", xlab = "", ylab = "Kreatynina", line.color = "grey", point.size = 0.01) | |
describe(temp) | |
wilcox.test(temp$Przyjęcie, temp$Wypis, paired = T) | |
t.test(temp$Przyjęcie, temp$Wypis, paired = T) | |
gridExtra::grid.arrange(a, ncol = 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment