Forecasts and ggplot

The forecast package uses the base R graphics for all plots, but some people may prefer to use the nice graphics available using the ggplot2 package.

In the following two posts, Frank Davenport shows how it can be done:

  1. Plotting forecast() objects in ggplot part 1: Extracting the Data
  2. Plotting forecast() objects in ggplot part 2: Visualize Observations, Fits, and Forecasts

 


Related Posts:


  • Eric

    Hi Rob,
    At the end of your Melbourne UseR presentation, you mention your new book, Forecasting Principles and Practices. You indicated at least some of it was on the website. I checked the suggested address:  http://robjhyndman.com/fpp and I’m getting an error 404 (page not found). Wondering if the book is in another location 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 redirection on the old address but it had stopped working. Now fixed.