The following solution uses ggplot2
:
First create some sample data:
df = data.frame(id = rep(letters[1:5], each = 100),
time = rep(Sys.time() + 1:100, 5),
value = runif(500) + rep(1:5, each = 100))
> head(df)
id time value
1 a 2013-06-17 14:02:37 1.368671
2 a 2013-06-17 14:02:38 1.302188
3 a 2013-06-17 14:02:39 1.817873
4 a 2013-06-17 14:02:40 1.283439
5 a 2013-06-17 14:02:41 1.022949
6 a 2013-06-17 14:02:42 1.232590
And create a plot.
library(ggplot2)
ggplot(df, aes(x = time, y = value, color = id)) + geom_line()