That line: lines(yfit1,c=3) does not appear in the code that you sent. I assume that you meant 'col=3'. The message may be saying that there are multiple partial matches for 'c' as a parameter. The code you included worked fine on my system. Do you manually input this line?
2010/1/18 snowcat wong <cathy_white...@hotmail.com> > > Dear all, > > > > I found really difficult with the time series questions, please help me > with this monthly airline series! > > > > I have run the following r code, and there is an error appeared at the end. > The data files was enclosed in the email. > > I'm sorry the errors message appeared in chinese, but it says > "plot.xy(xy.coords(x, y), type = type, ...) : > > errors in argument has more than 3 matches" > > > > > y=scan('F:/Math355/AIRLINE.txt',skip=2,nlines=18) > Read 144 items > > yts=ts(log(y)) > > plot(yts,main="LOG AIRLINE TOTALS",type='p',col=2) > > n=length(y) > > time=seq(1:n) > > > > month=c(rep(seq(1:12),12)) > > fmonth=as.factor(month) > > ymod1=lm(yts~time+fmonth) > > summary(ymod1) > > > > > yfit1=ymod1$fitted > > lines(yfit1,c=3) > ´íÎóÓÚ plot.xy(xy.coords(x, y), type = type, ...) : > ±äÔª3Óжà¸öÓëÖ®Ïà¶ÔÓ¦µÄÕýʽ±äÔª > > > Also, for a similar data set quarterly sales of spirits series, what is the > best model to use?? Should I use ARIMA?? > > > > > > > > Many thanks and regard, > > Cathy Wong > > _________________________________________________________________ > Got a cool Hotmail story? Tell us now > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.