s-news
[Top] [All Lists]

Re: "dynamic" plot for a time series

To: <s-news@wubios.wustl.edu>
Subject: Re: "dynamic" plot for a time series
From: "Dimitrios Stats" <dimitrios.stats@btopenworld.com>
Date: Wed, 3 Mar 2004 23:14:12 -0000
Importance: Normal
In-reply-to: <02d501c40150$16bcf430$823d260a@student12647>
Theodore,
The following should do the job

TS.function<-function(){
        smpl.mat<-matrix(rnorm(120,10,2),nrow=12,ncol=10)
        plot(smpl.mat[,1],type="n")
        for (i in 2:12) {
        lines(smpl.mat[,i],type="l")
        readline("Press button for next series line")
        }
}

Replace smpl.mat with your matrix of time series, and amend the subscripts
accordingly.

Dimitrios Chalvatzis





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