Stata graphs: Circular Bar Graphs II
(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.
- To make the graphs exactly as they are shown here, install the schemepack suite (more info in the Scheme guide and on GitHub):