Dear Jiang,

 

We do a lot of plots of that sort. At first I read the time values with as.Date(timevariable, format = "%d/%m/%Y"). Then You can plot along like

Plot(as.Date-variable, "your target variable", type = "l")

 

If You set axes = F than you can customize the xAxis with axis(1, ...)

 

The AT and LABELS options in axis I fill with something like:

at.x <- seq(as.Date("2006-01-01"), as.Date("2006-05-30"), "month")

lab.x <- paste(format(at.x, "%b"), c(rep("'06", 5)))

 

So only the month will appear as labels and tickmarks...

 

HTH

 

Dubravko

 

 

 

 

YOU WROTE:

 


[R] Time series plot


Jiang, Jincai \(Institutional Securities Management\)
Tue, 02 May 2006 15:28:13 -0700

I have some time series data like 
 
01/02/1990 0.531 0.479
01/03/1990 0.510 0.522
01/06/1990 0.602 0.604
 
there is no weekends and holidays.
how do I graph them in a single plot that the x-axis is the dates and
the y-axis is the time series?
Thank you
 
Regards,

 

 

Dubravko Dolic
Head of eConsulting

Tel:

+49 (0)89-55 27 44 - 4630

Fax:

+49 (0)89-55 27 44 - 2463

Email: 

dubravko.dolic@komdat.com <mailto:dubravko.dolic@komdat.com> 

------------------------------------------------------
Komdat GmbH
Nymphenburger Straße 86
80636 München
www.komdat.com <http://www.komdat.com/> 
------------------------------------------------------
ONLINE MARKETING THAT WORKS
------------------------------------------------------
This electronic message contains information from Komdat Gmb...{{dropped}}


