Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd arguments to geom_bracket for parsing plotmath expression #253
Comments
library(ggpubr)
#> Le chargement a nécessité le package : ggplot2
# Data preparation
df <- ToothGrowth
df$dose <- factor(df$dose)
# Add bracket with text labels
ggboxplot(df, x = "dose", y = "len") +
geom_bracket(
xmin = "0.5", xmax = "1", y.position = 30,
label = "t-test, p < 0.05"
)# Using expression
ggboxplot(df, x = "dose", y = "len") +
geom_bracket(
xmin = "0.5", xmax = "1", y.position = 30,
label = "list(~italic(p) <= 0.05)",
type = "expression"
)Created on 2020-04-05 by the reprex package (v0.3.0.9001) |


No description provided.