Suppose i have 3 time series data "a","b","c", each of them has 2 variables to be record in 7 days.
Here goes the sample code:
require(data.table)
#Create data
DT<-data.table(type=c(rep("a",7),rep("b",7),rep("c",7)), time=1:7,V1=rnorm(7*3,10,5),V2=rnorm(7*3,100,20),key="type")
# plot.zoo
require(zoo)
plot(zoo(DT["a"])[,3:4])
I am able to plot one type a time (as above), but i want to plot all "a" "b" "c"... into that panel, where different colors represents different type of time series.
So what i am looking for is a plot which has TWO panels (for "V1" and "V2"), and within each panel, there are several lines ("a","b","c"...) with different colors