I have the feeling that R is not working properly on my system.
I want to use an interaction plot to present my two-way ANOVA results. So I used the package ggpubr and am plotting with ggline using the example with multiple factors. It did not show the errorbars properly, instead of showing them for each factor, it grouped the factors, and the bars also appear black (see pictures below).
So I tested it with the exact example as in the package description (http://www.sthda.com/english/articles/24-ggpubr-publication-ready-plots/79-plot-meansmedians-and-error-bars):
library(ggpubr)
ggline(ToothGrowth, x = "dose", y = "len",
add = c("mean_se", "jitter"),
color = "supp", palette = "jco")
Which SHOULD give me this graph:
However, on my system I get this:
I already:
- updated the ggpubr package and all other packages
- completely re-installed R from scratch
- asked the package developer, it seems to be no package-bug cause it works for him
Can someone reproduce the same problem? I really don't know how to solve it and I also get the feeling that R might mess up other graphs as well.
Thanks a lot.