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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -