You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without scale_y_log10, add_pvalue works as expected
ggplot(tg, aes(x = supp, y = len)) + geom_boxplot() + add_pvalue(two.means)
With scale_y_log10, y-axis become extremely large and original plots are squeezed to the bottom
ggplot(tg, aes(x = supp, y = len)) + geom_boxplot() + add_pvalue(two.means) + scale_y_log10()
The text was updated successfully, but these errors were encountered:
Thanks for the reproducible example! It seems to be a bug in the bracket y position calculation. Try installing from Github and it should fix the issue.
add_pvalue function affects scale_y_log10's behavior, e.g.
tg <- ToothGrowth
tg$dose <- as.factor(tg$dose)
tg$group <- factor(rep(c("grp1", "grp2"), 30))
two.means <- tibble::tribble(
~group1, ~group2, ~p, ~y.position,
"OJ", "VC", 0.0606, 36)
Without scale_y_log10, add_pvalue works as expected
ggplot(tg, aes(x = supp, y = len)) + geom_boxplot() + add_pvalue(two.means)
With scale_y_log10, y-axis become extremely large and original plots are squeezed to the bottom
ggplot(tg, aes(x = supp, y = len)) + geom_boxplot() + add_pvalue(two.means) + scale_y_log10()
The text was updated successfully, but these errors were encountered: