[R] autocorrelation function plot in lattice

Richard M. Heiberger rmh at temple.edu
Sat Aug 20 23:10:44 CEST 2016


Yes.  You may use the acf.pacf.plot, tsacfplots and related functions
in the HH package.

>From ?HH::tsacfplots

     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:
> Using lattice package, is it possible to plot autocorrelation functions similar to acf in stats?
>
> Thanks,
> Naresh
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list