i

R Programming Complete Tutorial

R Area Plots

R can visualize one or more variables over time, using area plot. This area charts can be constructed in R using one of the many available plotting packages. In our study, we will use a simple area plot library.

In our example, we are storing Year and unemployed columns of Longley data set into my data variable, using this data; we have created our areaplot using the areaplot function. This green area is the desired outcome of our data set.

Example of Area Plot:

Graph Output: