Hi again.
I would like to produce a boxplot that has error bars. The boxplot itself should be black, while the error bars should be red.
Here is the initial code:
library(ggpubr)
Loading required package: ggplot2
data(ToothGrowth)
ggboxplot(ToothGrowth,x="dose",y="len",group="len",
+ add="mean_se",error.plot="errorbar")
Everything is black. Now I add the color attribute:
ggboxplot(ToothGrowth,x="dose",y="len",group="len",
+ add="mean_se",error.plot="errorbar",color="red")
So both the box and the error bars are red.
How would I go about having just the error bars be red, please?
Thank you,
Erin