I have
> head(My Data)
Time V1 V2 V3 V4 V5 V6 V7 V8 V9
1 10:00:00 0 11489 11017 6846 6832 3.95 5.75 0 464
2 10:00:10 0 11495 11012 6796 6807 3.95 5.75 0 467
3 10:00:20 0 11409 10983 6835 6797 3.95 5.75 0 458
4 10:00:30 0 11441 11064 6761 6661 0 0 0 463
5 10:00:40 0 11413 10999 6870 6853 0 0 0 461
6 10:00:50 0 11434 11053 6798 6814 0 0 0 459
I would like to plot "in the same plot":
9 separated curves in the same plot, where each curve with a different color represents a time series :
V1, ..., V9
.Add, to the plot, the name of each time series "column name".
For this plot, I would like to add Time to x-axis but as the timestamp is too small "10 seconds" there will be a dense of values arranged on the x-axis. Instead, I would like to represent Time in 30 minutes time lag.
Add a plot name, so to add My data as a title of the plot.
What I usually do is to use ts.plot()
or autoplot(ts())
to plot similar multiple time series in the same graph but I don't know how to calibrate my plot so I think ggplot
would be better to do this.
Could you please help me to learn how to do this easily in ggplot
or even using ts.plot()
if possible