Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created March 24, 2012 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramnathv/2177457 to your computer and use it in GitHub Desktop.
Save ramnathv/2177457 to your computer and use it in GitHub Desktop.
This is a test file uploaded using the rubygem gist

% Using Pandoc and knitR to Write Reproducible Documents % Ramnath Vaidyanathan % 23-Mar-2012

ro tidy = F, fig.width = 4.5, fig.height = 4.5, dev = 'Cairo_png' or

options(width = 75)
read_chunk('ext-chunks.R')
# opts_knit$set(upload.fun = imgur_upload)

We first load required libraries

We create data

Fit a model and forecast

A function to plot the forecast object in ggplot2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment