Stata Bubble Chart Options

In this guide, learn to put assemble a bubble chart using The Stata Guide’s Stata-schemes

Adam Ross Nelson
The Stata Gallery
Published in
7 min readJun 19, 2022

--

Preamble

This guide assumes the reader has a rudimentary understanding of Stata, how to install the software, how to interact with the software, how to load data, how to use and run a do file, the concepts and purposes associated with correlation analysis, and perhaps also how to produce simple visualizations.

Some of the techniques this guide will utilize include the following:

  • Installing new themes from the Boston College Statistical Software Components (SSC) archive using Stata’s ssc install conventions.
  • Opening a dataset. We will use Stata’s auto data. I’ve previously written about these data.
  • Building a custom legend (which combines a few techniques including such annotations and adding new observations to an existing data set)

If you have not yet performed the above tasks in your own learning journey this guide show the code (and offer brief explaination for you — but you may need other sources too… try the helpcommand).

To get the most from this guide, I recommend you have Stata 15 or newer. You will also want to install this publication’s custom schemes with the following.

ssc install schemepack, replace

--

--

Adam Ross Nelson
The Stata Gallery

Ask about my free career course. I mentor new (💫) and aspiring data scientists enter (🚪) and level up (📈) in the field.