Once we have a time series dataset, we want to plot the time series to see the trend. We can also forecast from the given time series.
You have completed the previous recipe and have my_series
time series ready. You also need to install a forecast package.
Perform the following steps in R:
> plot(my_series)
Plot of m y_series
> plot(AirPassengers)
Plot of AirPassengers
> cycle(AirPassengers) Output: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 1949 1 2 3 4 5 6 7 8 9 10 11 12 1950 1 2 3 4 5 6 7 8 9 10 11 12 1951 1 2 3 4 5 6 7 8 9 10 11 12 1952 1 2 3 4 5 6 7 8 9 10 11 12 1953 1 2 3 4 5 6 7 8 9 10 11 12 1954 1 2 3 4 5 6 7 8 9 10 11 12 1955 1 2 3 4 5 6 7 8 9 10 11 12 1956 1 2 3 4 5 6 7 8 9 10 11 12 1957 1 2 3 4 5 6 7 8...