I want to turn the color of the confidence intervals the same color as the error bars they belong to.
rat3 <- rep(c(1:6,6:2,3:1,2:4), 20)
logRT <- rep(seq(from=6, to=7.6, by=0.1), 20)
condition <- rep(c("c","i"),170)
condition <- as.factor(condition) #turns to 1-2, is c-i in my data
meto <- cbind(rat3, logRT, condition)
meto <- as.data.frame(meto) #this produces a df similar to mine
This is the code for the plot:
barmeto <- ggplot(meto, aes(rat3, logRT, colour=condition)) #assign
barmeto + geom_smooth(method="lm") +
stat_summary(fun.data=mean_cl_boot, geom="errorbar", lwd=1.5) +
scale_colour_grey(start=0.15, end=0.5)
It produces an image with 2 funnels of the same light gray. Sorry I can neither upload nor embed nor post a link to the picture other than like this: https://stats.stackexchange.com/questions/268740/ggplot2-change-colour-of-ci
I need the two funnels to have different colours. The very short one should be black like the error bars it belongs to (the short funnel black), the long one darker gray, like its error bars.
I'd appreciate any help, thanks! So far none of the recipes I found here worked for me.