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
ggpubr and rstatix are great packages! I truly admire your dedication and skill in creating such valuable tools for the community!
Expected behavior
The plot should be rendered regardless whether aes(fill) is provided or not.
Actual behavior
Error:
! Problem while computing aesthetics.
ℹ Error occurred in the 2nd layer.
Caused by error:
! object 'supp' not found
Run `rlang::last_trace()` to see where the error occurred.
Steps to reproduce the problem
library(ggpubr)
library(rstatix)
df<-ToothGrowthdf$dose<- as.factor(df$dose)
stat.test<-df %>%
group_by(dose) %>%
t_test(len~supp) %>%
add_xy_position(x="dose")
# this works
ggplot(df, aes(x=dose, y=len, color=supp)) +
geom_boxplot() +
stat_pvalue_manual(stat.test)
# this fails
ggplot(df, aes(x=dose, y=len, color=supp, fill=supp)) +
geom_boxplot() +
stat_pvalue_manual(stat.test)
# this also fails
ggplot(df, aes(x=dose, y=len, fill=supp)) +
geom_boxplot() +
stat_pvalue_manual(stat.test)
Hi @kassambara
ggpubr and rstatix are great packages! I truly admire your dedication and skill in creating such valuable tools for the community!
Expected behavior
The plot should be rendered regardless whether
aes(fill)
is provided or not.Actual behavior
Steps to reproduce the problem
session_info()
The text was updated successfully, but these errors were encountered: