Dessin des crochets avec texte pour les p-value dans les graphiques
Examples
fp <- patients |>
tidyr::drop_na(typemaladie, igs2) |>
ggplot2::ggplot() +
ggplot2::aes(x = typemaladie, y = igs2)
ggplot2::geom_boxplot()
#> geom_boxplot: outliers = TRUE, outlier.colour = NULL, outlier.fill = NULL, outlier.shape = 19, outlier.size = 1.5, outlier.stroke = 0.5, outlier.alpha = NULL, notch = FALSE, notchwidth = 0.5, staplewidth = 0, varwidth = FALSE, na.rm = FALSE, orientation = NA
#> stat_boxplot: na.rm = FALSE, orientation = NA
#> position_dodge2
figp(fp, x1 = 1, x2 = 2, yy = 95, pval = 0.01, od = FALSE, h = 2)