s-news
[Top] [All Lists]

Time Series Plot

To: s-news@lists.biostat.wustl.edu
Subject: Time Series Plot
From: Shane.Cahill@ILIM.COM
Date: Wed, 27 Jul 2005 14:19:35 +0100
Hi,
I have a time series which contains monthly observations.  When I try to
plot this data, the resulting plot appears to be on a daily frequency.
How can I plot this time series on a monthly frequency (i.e. no gaps between
bars)?

I have attached an example using the djia time series supplied with S-PLUS.

monthlyDjia <- aggregate(djia[positions(djia) > timeDate("01/01/1989"),4],
FUN=mean, by="months")
plot(monthlyDjia, plot.type="stackbar")

I am using S-PLUS 6.2 for Windows on NT 4.

Any assistance would be greatly appreciated,
Shane

**********************************************************************************
Irish Life Investment Managers Limited is authorised by the Financial Regulator 
under Section 10 of the Investment Intermediaries Act, 1995. 

While Irish Life Investment Managers uses reasonable efforts to ensure that the 
information contained in this email is current, accurate and complete at the 
date of publication, no representations or warranties are made (express or 
implied) as to the reliability, accuracy or completeness of such information. 
Irish Life Investment Managers therefore cannot be held liable for any loss 
arising directly or indirectly from the use of, or any action taken in reliance 
on, any information contained in this email. 

This material is for information only and does not constitute an offer or 
recommendation to buy or sell any investment, or subscribe to any investment 
management or advisory service. It is intended for the use of institutional and 
other professional investors. Past performance is not indicative of future 
results. The value of funds we manage may fall as well as rise.

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
footnote also confirms that this email message has been swept for the presence 
of computer viruses.
**********************************************************************************


<Prev in Thread] Current Thread [Next in Thread>
  • Time Series Plot, Shane . Cahill <=