I want to plot a time series with different colors based on factors. I tried splitting the time series by factor, then plotting using
plot(x1[["3"]]