How to Graph in R with dates and timestamps -
i have current datagram in r:
timestamp name fp date 1500485400000,unknown,0.04,jul 19,2017 2:25:08 pm 1500486300000,unknown,0.06,jul 19,2017 2:25:08 pm 1500494400000,unknown,0.17,jul 19,2017 4:24:38 pm 1500495300000,unknown,0.14,jul 19,2017 4:24:38 pm 1500498000000,unknown,0.12,jul 19,2017 5:01:48 pm 1500500700000,unknown,0.12,jul 19,2017 6:15:11 pm 1500501600000,unknown,0.11,jul 19,2017 6:15:11 pm 1500502500000,unknown,0.07,jul 19,2017 6:15:11 pm
what ggplot
of data frame grouped hour , these hours plotted according timestamp. x axis fp , y axis dates/hour , in order of timestamp. or way @ graphing in order appears in table. example
first have add reorder ggplot therefore u need add column in datagram 1-15 make reorder row. this:
c=nrow(databyname) databyname$rowid<- 1:c
then u plot using
ggplot(databyname, aes(x =reorder(databyname$`date , timestamp`,databyname$rowid), y = databyname$total_frames,group=1)) + geom_point()+ geom_line()+ theme(axis.text.x = element_text(angle = 90, hjust = 1))+ggtitle(name2)+ xlab('date , timestamp')+ylab('total frames')+geom_line()
Comments
Post a Comment