i

R Programming Complete Tutorial

R Bar Charts

A Bar Chart represents data in rectangular bars with a length of the bar proportional to the value of the variable. We use the function barplot () to create bar charts and can draw both vertical and horizontal bars in the bar chart.

This is a typical example of the Bar Chart with month-wise income data.

Example of barplot():

Graph output: