I have 2 time series data and I want to plot the ACF in one ggplot with different colour, I just found ggAcf, but it couldn't solve my problem
library(ggplot2)
data1<-seq(1,300,3)
data2<-seq(1,100,0.5)
ggAcf(data2,1)
ggAcf(data2,20)
I want to make the plot as follow type
How can I solve it?
You can calculate the
acf
independently for each data set then add them to the same dataframe and plot from there