I have a set of UNIX and URI timestamps, and I'm trying to build a cumulative number of requests for each URI. I managed to do this for one URI at a time using a dummy column:
x.df$count <- apply(x.df,1,function(row) 1)
However, in my case, this would be approximately 30 graphs.
ggplot2 allows you to display multiple lines in a single graph (I copied this piece of code from here ):
ggplot(data=test_data_long, aes(x=date, y=value, colour=variable)) + geom_line()
The problem is that in this way cumsum() will be considered further.
Does anyone have any ideas?
source share