top of page
Search

How to Create a Radial Bar Plot in R using ggplot2

hands typing on a laptop

Overview

A radial bar chart (also called a circular bar chart) is a type of bar chart plotted in a polar coordinate system, where bars radiate outward from a central point or are arranged around a circle. Each bar’s length represents the value of a category, but because bars are positioned at different angles and radii, outer bars appear longer even if their values are equal. Radial bar charts are visually striking and useful for comparing categories in a circular layout, but they can make value comparisons less precise than standard bar charts

Example of a Radial Bar Plot

example of a radial bar plot

Step-by-step Guide

To create a radial bar plot in R with the ggplot2 package.

Load the required libraries.

loading the required libraries

Set the working directory and load the dataset. (In this example, I will be using the Sample – Superstore dataset).

setting working directory and loading dataset

Next, let’s compute the proportion of Sales by Month using the code below.

computing percent sales by month in r

See the computed percentages by month.

sample dataset

Create a new column “label” by appending percent values to month as shown below.

modifying data by appending percentages to months

See the computed new column “label”.

sample dataset

Sort the data in descending order by Percent.

sorting the dataset in descending order by percent in r

Next, let’s create a radial bar plot using the code below.

creating a basic radial bar plot in r

Executing the above code plots the radial bar plot below.

example of a simple radial bar plot in r

Formatting the Radial Bar Plot

You can format your view by incorporating title, labels, and declutter the view using the code below.

formatting radial bar plot in r

Executing the above code plots the radial bar plot below.

final view of radial bar plot created in r

Conclusion

Radial bar charts offer a visually striking and intuitive way to present categorical data in a circular format. Their ability to emphasize differences in values while maintaining a compact and aesthetically pleasing structure makes them a valuable choice for data visualization. However, careful design considerations—such as proper scaling and clear labelling—are essential to ensure readability and accurate interpretation. When used effectively, radial bar charts can enhance storytelling in data-driven presentations, making complex information more accessible and engaging.

If you like the work we do and would like to work with us, drop us an email on our contacts page and we’ll reach out!

Thank you for reading!

Tags:

 
 
Original.png

We Support You Deliver Business-Focused Solutions That Enable Data-Driven Decision Making.

  • Tableau profile
  • YouTube
  • White LinkedIn Icon
  • Facebook
  • X

QUICK LINKS

CONTACT US

+254 738 307 495

East Gate Mall, Donholm

3rd Floor Suite No. 3i

Nairobi, Kenya

Join our mailing list

bottom of page