Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depreciated fonction of ggplot2 causing issue on second run #580

Open
Denebium opened this issue Jul 31, 2023 · 0 comments
Open

Depreciated fonction of ggplot2 causing issue on second run #580

Denebium opened this issue Jul 31, 2023 · 0 comments

Comments

@Denebium
Copy link

Hi ! Thnaks a lot for this cool package, it really helps with plotting. Recently, I ran into an issue with ggplot2. The output told me to report at this adress. It works on the first run but after that it give me errors, as seen on the second output.
Here is the code and the output.

code :
ggviolin(data,
x = "x",
y = "y",
color = "type",
add = c("boxplot", "mean"),
title = "Distribution") %>% ggadd(c("point"), alpha = 0.5)+
stat_anova_test() +
stat_summary(fun = mean,
geom = "line",
aes(x = type, y = y, group = 1))

output 1st run:
Warning message:
"The fun.y argument of stat_summary() is deprecated as of ggplot2 3.3.0.
ℹ Please use the fun argument instead.
ℹ The deprecated feature was likely used in the ggpubr package.
Please report the issue at <https://github.com/kassambara/ggpubr/issues>."
Warning message:
"The fun.ymin argument of stat_summary() is deprecated as of ggplot2 3.3.0.
ℹ Please use the fun.min argument instead.
ℹ The deprecated feature was likely used in the ggpubr package.
Please report the issue at <https://github.com/kassambara/ggpubr/issues>."
Warning message:
"The fun.ymax argument of stat_summary() is deprecated as of ggplot2 3.3.0.
ℹ Please use the fun.max argument instead.
ℹ The deprecated feature was likely used in the ggpubr package.
Please report the issue at <https://github.com/kassambara/ggpubr/issues>."

output 2nd run:
Warning message:
"Computation failed in stat_summary()
Caused by error in call_f():
! Can't convert fun, a <tbl_df/tbl/data.frame> object, to a function."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant