Using lattice package, is it possible to plot autocorrelation functions similar to acf in stats? Thanks, Naresh [[alternative HTML version deleted]]
Undoubtedly. Consider nlme::plot.ACF as one possibility. Roll your own is also feasible. -- Sent from my phone. Please excuse my brevity. On August 20, 2016 5:28:04 AM PDT, 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.
Yes. You may use the acf.pacf.plot, tsacfplots and related functions in the HH package.>From ?HH::tsacfplotstsacfplots(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.