Re: [R] running means

2010-02-18 Thread RagingJim
Ok, took me a while, but I figured it out. Because my running mean had less years than my standard rainfall graph, when I overlaid the running mean onto the rainfall it was trying to stretch out. So I just plotted both onto the same graph., like so: barplot(Ann,main=title, xlab="Year",ylab="Rainf

Re: [R] running means

2010-02-11 Thread RagingJim
ok, solved it. Hoowever (there is always a however), I would like to centre the line plot of the rolling mean onto the centre of each bar in my bar plot. Currently, the lines aligns itself with the RHS of bars. I have tried this http://n4.nabble.com/Barplot-plot-same-scale-td1009254.html#a1009269