[R] How to save graphs out of ACF ?

Ben Bolker bbolker at gmail.com
Wed Jan 5 14:28:50 CET 2011


 <Mihai.Mirauta <at> bafin.de> writes:

> 
> Hi,
> 
> I want to save the autocorrelation plots resulting out of ACF (acf(ts)), not
just by using the "Save as"
> command in the R Gui but using some sort of code, which allows me to chose the
format and the path.
> Thank you,
> 
> Mihai

 for example:

a <- acf(runif(10))
pdf("acf.pdf")
plot(a)
dev.off()



More information about the R-help mailing list