In the R Document, the usage of the acf() is as follow: acf(x, lag.max = NULL, type = c("correlation", "covariance", "partial"), plot = TRUE, na.action = na.fail, demean = TRUE, ...) But now I want to get the result picture like: plot(x,type="l") or plot(x,type="p") How can I do this with acf function? 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭佒伮 伬侎仯仭 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭伖併佇伹 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭guangxing at ict.ac.cn 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭2005-11-28
On Mon, 28 Nov 2005, [gb2312] ???? wrote:> In the R Document, the usage of the acf() is as follow: > acf(x, lag.max = NULL, > type = c("correlation", "covariance", "partial"), > plot = TRUE, na.action = na.fail, demean = TRUE, ...) > But now I want to get the result picture like: > plot(x,type="l") > or > plot(x,type="p") > How can I do this with acf function?From the very same help page The generic function 'plot' has a method for objects of class '"acf"'. so use that directly: it has a 'type' parameter. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Oops,I got it!>plot(acf(x,plot=false),type="l",col="red")will be OK! Thank you very much! ======= 2005-11-28 18:09:03 伳侜佋佢伬伌佇伵佒佇佇伌伒伬仯伜======>On Mon, 28 Nov 2005, [gb2312] 伖併佇伹 wrote: > >> In the R Document, the usage of the acf() is as follow: >> acf(x, lag.max = NULL, >> type = c("correlation", "covariance", "partial"), >> plot = TRUE, na.action = na.fail, demean = TRUE, ...) >> But now I want to get the result picture like: >> plot(x,type="l") >> or >> plot(x,type="p") >> How can I do this with acf function? > >From the very same help page > > The generic function 'plot' has a method for objects of class > '"acf"'. > >so use that directly: it has a 'type' parameter. > >-- >Brian D. Ripley, ripley at stats.ox.ac.uk >Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ >University of Oxford, Tel: +44 1865 272861 (self) >1 South Parks Road, +44 1865 272866 (PA) >Oxford OX1 3TG, UK Fax: +44 1865 272595= = = = = = = = = = = = = = = = = = = 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭佒伮 伬侎仯仭 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭伖併佇伹 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭guangxing at ict.ac.cn 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭2005-11-28
I am sososo sorry for my inattention to my EMail's format仯仭 I have change that. Thank you very much again! ======= 2005-11-28 21:19:16 Write仯伜======>>>>>> "$A9cPG(B" == $A9cPG(B <guangxing at ict.ac.cn> >>>>>> on Mon, 28 Nov 2005 19:16:31 +0800 writes: > > $A9cPG(B> Oops,I got it! > >> plot(acf(x,plot=false),type="l",col="red") > >almost, >but not if you falsely write 'false' instead of 'FALSE' ! > > $A9cPG(B> will be OK! > > $A9cPG(B> Thank you very much! > > > $A9cPG(B> ======= 2005-11-28 18:09:03 $ADzTZ at 4PEVPP45@#:(B======> > >> On Mon, 28 Nov 2005, [gb2312] $A9cPG(B wrote: > >[ pretty neat how I see chinese letters in my mail reader > {Emacs+VM "of course"} and even named citation automagically > works... ] > >Martin Maechler, ETH Zurich > > > >>> In the R Document, the usage of the acf() is as follow: > >>> acf(x, lag.max = NULL, type = c("correlation", > >>> "covariance", "partial"), plot = TRUE, na.action > >>> na.fail, demean = TRUE, ...) But now I want to get the > >>> result picture like: plot(x,type="l") or > >>> plot(x,type="p") How can I do this with acf function? > >> From the very same help page > >> > >> The generic function 'plot' has a method for objects of > >> class '"acf"'. > >> > >> so use that directly: it has a 'type' parameter. > >> > >> -- > >> Brian D. Ripley, ripley at stats.ox.ac.uk Professor of > >> Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > >> University of Oxford, Tel: +44 1865 272861 (self) 1 South > >> Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: > >> +44 1865 272595 > > $A9cPG(B> = = = = = = = = = = = = = = = = = = = > > > $A9cPG(B> $A!!!!!!!!!!!!!!!!VB at q#!(B > > > $A9cPG(B> $A!!!!!!!!!!!!!!!!9cPG!!!!!!!!!!!!!!!!(B > $A9cPG(B> guangxing at ict.ac.cn $A!!!!!!!!!!!!!!!!!!!!(B2005-11-28 > > $A9cPG(B> ______________________________________________ > $A9cPG(B> R-help at stat.math.ethz.ch mailing list > $A9cPG(B> https://stat.ethz.ch/mailman/listinfo/r-help > $A9cPG(B> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >= = = = = = = = = = = = = = = = = = = 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭GuangXing 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭guangxing at ict.ac.cn 仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭2005-11-28
Apparently Analagous Threads
- How to plot two different lines with different color with the same "plot" function?
- How to generate the random numbers with the lognormal distribution?
- How to test a time series fit the Poisson or other process?
- accessing source code in R packages
- write.dta limits