r - Changing standard error color for geom_smooth -
i'm plotting data using geom_smooth , looking way change color of standard error shading each line match line (ie., red line have it's standard error shaded red). i've looked through official ggplot2 documentation list of opts() @ https://github.com/hadley/ggplot2/wiki/%2bopts%28%29-list. advice (or confirmation of whether or not it's possible) appreciated.
your (understandable) mistake think should changing color rather fill. standard error shadings made geom_ribbon
essentially, , 2d area, "color" "filled" determined fill
, not colour
.
try:
geom_smooth(aes(...,fill = variable))
where variable same 1 map colour elsewhere.
Comments
Post a Comment