Stata graphs: Circular Bar Graphs II

Asjad Naqvi
The Stata Guide
Published in
18 min readJun 23, 2022

--

(Note: This guide is now superceded by the “circlebar” package: https://github.com/asjadnaqvi/stata-circlebar.)

In this guide we will learn to make the following circular bar graphs in Stata:

The is a follow up guide to the earlier Circular Bar Graphs I post. While the first guide utilized the twoway rbar as the basis for generating the circular bars, in this guide, we will use a combination of custom-generated arcs and pie slices, combined with a knowledge of polar coordinates that have been covered in a bunch of earlier guides. Have a look at the various guides in the Polar section.

This guide is fairly advanced, and therefore it is highly recommended that you read the introductory guides in the Polar section that slowly introduce the steps and logic used in this guide.

Preamble

Like previous guides, a basic knowledge of Stata is assumed. For this guide, you should ideally have Stata 15 or higher to get the colors to display properly.

--

--

Asjad Naqvi
The Stata Guide

Here you will find stuff on Stata, data visualizations, data wrangling, workflows, and programming.