s-news
[Top] [All Lists]

Displaying gaps in the data using plot.timeSeries()

To: s-news@lists.biostat.wustl.edu
Subject: Displaying gaps in the data using plot.timeSeries()
From: Isabella Ghement <isabella@stat.ubc.ca>
Date: Tue, 27 Mar 2007 11:00:31 -0700 (PDT)
In-reply-to: <46092A73.6090102@pdf.com>
Hello, 

I have a timeSeries object B containing data for non-consecutive days,
say: 

B <- timeSeries(cbind(B1=4:7,B2=7:10),pos=c(1:2,5:6))

and  would like to plot it such that the gaps in the data are visible.
However, when I use the plot.timeSeries() function,  the data points
corresponding to non-consecutive days are connected through a line:

plot.timeSeries(B,reference.grid=F)

Is there a way to get plot.timeSeries to automatically recognize the gaps
in the data and display them as such?   

Thank you in advance for any insight you may be able to provide! 

Isabella R. Ghement, Ph.D.







<Prev in Thread] Current Thread [Next in Thread>
  • match, Manoel Pacheco
    • Re: match, Sundar Dorai-Raj
      • Displaying gaps in the data using plot.timeSeries(), Isabella Ghement <=