r - Trying to plot time series data using time information only via lattice -


i have time series data intraday price changes different products example:

date.time          price product 12/1/2012 13:12:01 15    12/1/2012 14:12:05 16    15/2/2012 09:09:10 11    b 15/2/2012 08:08:12 10    b 

i wanted plot timeseries data via lattice compare price changes between products.

library(lattice) xyplot(price~as.posixct(strptime(date.time, "%d/%m/%y %h:%m:%s"))|product, data=temp, type="o") 

because the day each product can several days apart, not able visualize price changes on time.

enter image description here

i plot time info instead of full date time info.

how can achieve this?


Comments