[R] How Can I change the acf's plot type?

Martin Maechler maechler at stat.math.ethz.ch
Mon Nov 28 14:19:16 CET 2005


>>>>> "$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




More information about the R-help mailing list