Re: [R] Strange plotting error

2012-02-14 Thread Duncan Murdoch
On 12-02-14 3:13 PM, Diviya Smith wrote: Hi there, I am trying to compute the autocorrelation in a dataset using R's acf function. ACF automatically plots the results. This works well except in some cases xlim doesnt work data<- rnorm(2000,0,1) acf(data,xlim=c(1,10)) # works - the plot starts

[R] Strange plotting error

2012-02-14 Thread Diviya Smith
Hi there, I am trying to compute the autocorrelation in a dataset using R's acf function. ACF automatically plots the results. This works well except in some cases xlim doesnt work data <- rnorm(2000,0,1) acf(data,xlim=c(1,10)) # works - the plot starts at 1 acf(data,lag=100,xlim=c(1,100)) # t