i

R Programming Complete Tutorial

R Time Series

Time series analysis is a statistical technique that deals with time-series data or trend analysis. In time series, data is represented in a series of particular time periods or intervals.

We have created a data frame using the date and with its associated value. Then we have used xts function to convert this data into xls format. After that, we have used digraph function to plot time series data.

Example of Time series graph:

Graph Output: