Skip to content

autocorrelation function plot in lattice

3 messages · Naresh Gurbuxani, Jeff Newmiller, Richard M. Heiberger

#
Using lattice package, is it possible to plot autocorrelation functions similar to acf in stats?

Thanks,
Naresh
#
Undoubtedly.  Consider nlme::plot.ACF as one possibility. Roll your own is also feasible.
#
Yes.  You may use the acf.pacf.plot, tsacfplots and related functions
in the HH package.
tsacfplots(co2)
     acf.pacf.plot(co2)

If you want just the acf, and not the pacf also, you can use

    update(acf.pacf.plot(co2)[1], layout=c(1,1), main="ACF: co2")

On Sat, Aug 20, 2016 at 8:28 AM, Naresh Gurbuxani
<naresh_gurbuxani at hotmail.com> wrote: