I am stuck at the following problem.

I have two moving averages. One is faster than another. After plotting them
I need to shade area between them in green when the faster is above slower
and red where faster is below slower.

Something like this:
http://charts.stocktwits.com/production/original_9205513.png?1345576091

I tried with polygon but I can't do it. Any hints?

Regards
olo



--
View this message in context: 
http://r.789695.n4.nabble.com/Moving-averages-shading-two-colours-polygon-tp4679460.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to