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

=?gb2312?B?uePQxw==?= guangxing at ict.ac.cn
Mon Nov 28 12:16:31 CET 2005


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




More information about the R-help mailing list