i

R Programming Complete Tutorial

R Pie Charts

A Pie Chart is a representation of values or slices of a circle in different colors. We can create a Pie chart using the Pie () function, which takes positive numbers as a vector input; we may use additional parameters like radius, col, main to beautify our pie chart.

We are using the same month-wise income data to create a Pie Chart. From the graph output, we can easily differentiate the income by months.

Example of pie() function:

Graph Output: