I am looking for a possibility to create autocorrelation plots comparable to those plotted by acf().
qplot(date,value,data=result,geom="line") + geom_hline(yintercept=0,color="red",alpha=0.6,size=0.2)+ facet_grid(variable~.) ,
Now there is two things i´d love to do:
1) add bars of autocorrelation to the same graph. That would really be nice because the original time series is already scaled from -1 to 1.
2) actually I have a data.frame of these 4 time series. I´d like to use series 1 as a reference and have autocorrelation plot with the other 3. If I use acf(mydataframe) I get 16 plots. Is there a way to show only one side of the correlation (just like with covariance matrices) ?
In general it would already nice to do what acf does with ggplot2 because the plots look so much better.
Currently, my idea for 1) is to acf(x,plot=F) and then try to plot the result into the same graph with some bar geom. But I was not able to make it run thus far.
thx in advance for any help, best
matt