Decomposing Time Series Data with R

In an earlier post I started looking at how I might use R to forecast Google search volume.

Now I find the useful `decompose` function, which decomposes a time series into seasonal, trend and irregular components using moving averages.

Which produces the following:

Search trend for “cold remedies” – showing the original time series and beneath that, the decomposed trend, seasonal fluctuation and noise.