[R] lattice and dates

Michael A. Miller mmiller3 at iupui.edu
Tue Jun 25 21:11:49 CEST 2002


I've got some data that is recorded at various times during the
day.    I create a time stamp is created from date and time
strings like this:
  
  > timestamp <- strptime( paste( datestring, timestring), "%D %X" )

Then I'd like to use lattice to plot the time dependence by doing
something like 

  > xyplot( value ~ timestamp | subject )

This fails with 

  Error in as.double.default(x) : (list) object cannot be coerced to vector type 14
  In addition: Warning message: 
  Both x and y should be numeric in: xyplot( value ~ timestamp | subject )

I was sure I saw something like this on r-help recently, but I
can't seem to track it down now.  Can anyone help me out?

Thanks, Mike

-- 
Michael A. Miller                               mmiller3 at iupui.edu
  Imaging Sciences, Department of Radiology, IU School of Medicine
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list