s-news
[Top] [All Lists]

Re: plotting timeseries

To: "Ruud H. Koning" <info@rhkoning.com>
Subject: Re: plotting timeseries
From: Eric Zivot <ezivot@u.washington.edu>
Date: Fri, 31 Jan 2003 13:32:29 -0800 (PST)
Cc: s-news@wubios.wustl.edu
In-reply-to: <200301312212310151.000a193d@192.168.1.66>
The data are running backwards in time. Reverse the ordering of the dates and 
data and everything should work fine. 

****************************************************************
*  Eric Zivot                                                  *
*  Associate Professor         phone:  206-543-6715            *
*  Department of Economics     fax:    206-685-7477            *
*  Box 353330                  email:  ezivot@u.washington.edu *
*  University of Washington                                    *
*  Seattle, WA 98195-3330                                      *
*                                                              *
*  www:  http://faculty.washington.edu/ezivot                  *
****************************************************************

On Fri, 31 Jan 2003, Ruud H. Koning wrote:

> Hello, I have created a timeseries object and the dates look like:
> 
> wr.men.ts@positions
>  [1] 30 Aug 1991 18 Oct 1968 19 Oct 1967 29 May 1965 12 Sep 1964 15 Aug
> 1964
>  [7] 10 Jun 1962 16 Jul 1961 27 May 1961 12 Aug 1960 25 May 1935 27 Oct
> 1931
> [13] 9 Sep 1928  7 Jul 1928  13 Jun 1925 7 Jul 1924  23 Jul 1923 5 Aug 1901
> 
> 
> If I want to plot one of the variables in this object, S-Plus complains:
> 
> > plot(wr.men.ts[,"distance"])
> Problem in timeSequence(from = list(list(11563, 792..: Incompatible values
> of from and to 
> 
> I don't have any idea what could be the problem here and appreicate any
> ideas. Now complaints
> when I graph the same variable using seriesPlot()
> S-Plus 6.0, W2K, FinMetrics.
> 
> Thanks, Ruud
> 
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message:  unsubscribe s-news
> 



<Prev in Thread] Current Thread [Next in Thread>