1

I have got a dataframe with following columns product,date,sales

e.g data

        product date      sales
         A      1/1/2011  100 
         A      2/1/2011  102
         ..     .. 
         B      1/1/2011   50 
         B      2/1/2011   50

I have done forecasting using one variable but dont know how to do when there are multiple dependent variables I want to plot the time series plot of all products including their forecasted value using the trellis plot

Sunny Sunny
  • 3,204
  • 4
  • 25
  • 26
  • 1
    Are you looking for something like this: `require(lattice); xyplot(sales ~ date | grp, data=temp, panel=function(x, y, ...) {panel.xyplot(x, y, ..., type="l")})`? – A5C1D2H2I1M1N2O1R2T1 Aug 14 '12 at 07:41

0 Answers0