Forecasts and ggplot

The fore­cast pack­age uses the base R graph­ics for all plots, but some peo­ple may pre­fer to use the nice graph­ics avail­able using the ggplot2 package.

In the fol­low­ing two posts, Frank Dav­en­port shows how it can be done:

  1. Plot­ting fore­cast() objects in ggplot part 1: Extract­ing the Data
  2. Plot­ting fore­cast() objects in ggplot part 2: Visu­al­ize Obser­va­tions, Fits, and Forecasts

 


Related Posts:


  • Eric

    Hi Rob,
    At the end of your Mel­bourne UseR pre­sen­ta­tion, you men­tion your new book, Fore­cast­ing Prin­ci­ples and Prac­tices. You indi­cated at least some of it was on the web­site. I checked the sug­gested address:  http://​rob​jhyn​d​man​.com/fpp and I’m get­ting an error 404 (page not found). Won­der­ing if the book is in another loca­tion or where I might be able to get it.

    Eric

    • http://robjhyndman.com Rob J Hyndman

      It is http://​otexts​.com/fpp/. I had a redi­rec­tion on the old address but it had stopped work­ing. Now fixed.