[R] Chron object in time series plot

Manta mantino84 at libero.it
Tue Oct 19 17:25:11 CEST 2010


Dear R users, I have the following script to create bins of specified time
intervals


bin_end=60/bin_size
bin_size=bin_size*100
h=seq(070000,180000,by=10000)
breaks=c()
for (i in h)
	{
	for (j in 0:(bin_end-1))
		{
		value=i+(bin_size)*j
		breaks=append(breaks,value)
		}
	}


I would like to plot then using the time as x-axis. I tried the following

prova=zoo(myseries,times(breaks))

but of course I got the plot with the time as 80000, 90000, 100000 and so
on. I would like only 08:00, 09:00 and so on (maybe also the half hours).
How to do it?

Thanks for your help,
Marco

-- 
View this message in context: http://r.789695.n4.nabble.com/Chron-object-in-time-series-plot-tp3002285p3002285.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list