Skip to content
Prev 350596 / 398502 Next

Black outlines for errorbar using geom_line

Hi Michael,
I don't know about ggplot, but it is fairly easy to create outlined or
even shadowed errorbars:

require(plotrix)
# display thick black errorbars
dispersion(...,lwd=3)
# display thin white errorbars
dispersion(...,col="white")

The above trick produces white errorbars outlined in black. I think it
will work for any routine producing error bars, not just the
"dispersion" function. You may be able to simply add two geom_errorbar
components to the call in the same way as above.

Jim
On Sat, May 2, 2015 at 8:18 AM, <michael.eisenring at agroscope.admin.ch> wrote: