Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

 

 

 

A circular barplot is a barplot where bars are displayed along a circle instead of a line. This page aims to teach you how to make a circular barplot with groups. Since this kind of chart is a bit tricky, I strongly advise to understand graph #295 and #296 that will teach you the basis.

 

The first step is to realise this circular plot with a break in the circle. Actually, I just added a few empty lines at the end of the initial data frame.

 

 

 

This concept can now be used to add space between each group of the dataset. I add n lines with only NA at the bottom of each group.

This chart is way more insightful since it allows to quickly compare the different groups, plus compare the value of each people into each group.

The right chart is exactly the same one, but with observations ordered into each group. It can be useful if your goal is to understand what are the highest / lowest observation.

 

To order the data, just add this code right after the data frame creation:

Last but not least, it is highly advised to add a few customisation to your chart. You need to right the name of the groups, and a scale to understand what the size of the bar mean. Here we are! The code is a bit long, but the result is quite worth it in my opinion!

 

 

Related


 

Make a search


 

 


Leave a Reply

1 Comment on "#297 Circular barplot with groups"

Notify of
avatar
Sort by:   newest | oldest | most voted
Luca Zavarella
Guest

Very nice plot! Just an hint to use a custom data frame: the values have to be rescaled to 0-100.

wpDiscuz