Skip to content

shaded timeseries plot

2 messages · Thomas Hoffmann, Andy Bunn

#
Dear list members,

I would like to plot a time series, with grayshaded background in time 
phases were the value of the timeseries exceeds the mean value. For 
example, if the temperature from 1995-1998 exeeds the mean value between 
1980 and 2005, the background in the plot from 1995-1998 shall be shaded.

Can anybody help me?
Thanks
Thomas H.
#
Does this thread help?
https://stat.ethz.ch/pipermail/r-help/2006-February/086874.html