Displaying 1 result from an estimated 1 matches for "dfevents".
Did you mean:
devents
2005 Jan 17
1
Time line plot in R?
...ents<-c("2002/08/01","2002/08/02","2002/08/03","2002/08/07","2002/08/08","2002/08/09")
descEvents<-c("disaster1", "change1", "disaster2", "disaster3",
"change2", "change3")
dfEvents<-data.frame(dateEvents, descEvents)
dfEvents
df$datetime <- chron(dates=as.character(df$date),
times=df$time,format=c('y/m/d', 'h:m:s'))
plot(temp ~ datetime, data=df, type="l")