[R] How to add error bars to a line plot with ggplot2?

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Jul 14 18:47:29 CEST 2023


В Fri, 14 Jul 2023 18:33:38 +0200
Luigi Marongiu <marongiu.luigi using gmail.com> пишет:

> COLS = c("green", "red", "blue", "yellow")

>   geom_errorbar(aes(x=Time, ymin=ddC-SD, ymax=ddC+SD, colour=mM,
> group=mM), width=.1, colour=COLS) +

The last `colour` argument in the call above is a character vector of
length 4. You probably meant to use it with a scale_colour_... function
instead.

-- 
Best regards,
Ivan



More information about the R-help mailing list