I'm using standard barplot (Windows version 1.6.2 of R) to represent a certain weekly
metric "v" and I would like to properly overlay on top of it its moving average
"mean.8" (window of 8 weeks). I must be doing something wrong since the moving average
(using "lines") doesn't overlay properly, i.e., both x-scales do not match!
...
barplot(v[8:length(v)], col=7)
lines(mean.8[1:length(mean.8)], lty=1, lwd=2, col=2)
...
How do I make sure that both graphics are in synch as far as the x-scale and y-scales
are concerned?
Thanks,
Jos� A. S. Alegria
[[alternate HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help