Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Data Visualization in Stata
Highest Rated
Rating: 4.7 out of 5(37 ratings)
428 students

Data Visualization in Stata

40 graph types, from histograms and violin plots to heat maps and triplots: what each shows and how to make it in Stata
Created byF. Buscha
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Choose the right graph for your data: one continuous variable, one discrete variable, two variables, or three and more
  • Show the shape of a distribution with histograms, density, ridgeline, box, violin, stem-and-leaf and dot plots, and know what each one hides
  • Check a distribution against the normal and other distributions with quantile, quantile-normal, quantile-quantile and symmetry plots
  • Present counts and categories clearly with bar graphs, dot charts, pie charts and radar plots, and know when a pie chart is the wrong choice
  • Show the relationship between two variables with scatter, heat, hex, sunflower and polar smoother plots, and add a line of best fit
  • Plot change over time with line, area, range, dropline, rainbow and sparkline plots
  • Compare groups of categorical data with jitter, table, balloon, stacked bar and mosaic plots
  • Show three or more variables at once with contour plots, bubble plots, Chernoff faces and triplots
  • Write the Stata code for every graph, step by step, and adjust colours, labels, bins and bandwidths until the graph tells the story
  • Install and use free community commands such as vioplot, heatplot, tabplot, hangroot and triplot

Course content

6 sections • 80 lectures • 8h 41m total length
  • Introduction4:24

    Explore practical data visualization techniques in stata, learn to create and customize graphs from code, compare graph types, and build confident, transferable visual skills for analyzing quantitative data.

Requirements

  • Stata 17 or newer. The course was recorded in Stata 17, and most graphs also work in older versions.
  • Basic Stata: opening a dataset, running a command and using a do-file. You don't need any graphing experience.
  • An internet connection for the free community commands, which we install from inside Stata as we go.
  • No maths beyond the basics. If you know what a mean and a median are, you're ready.

Description

A good graph shows things that a table of numbers hides: the shape of a distribution, an outlier, a relationship that bends, a group that behaves differently. It's also often the first thing your reader looks at. Yet most of us use the same three or four graphs again and again, because learning new ones, and how to code them, takes time.

This course gives you 40 graph types in one place. Each one comes in two short videos:

  • What is it? An animated explainer, drawn from real data, shows what the graph displays, how to read it, when it's the right choice and where it can mislead you.

  • Learn Stata. We then build the same graph in Stata, command by command, and adjust it until it's ready to share.

The course is modular. Work through it in order, or jump straight to the graph you need today.

What's in the course

  • One continuous variable: histograms (including unequal bins), density and multiple density plots, ridgeline, cumulative density, spike, rootogram, box, violin, stem-and-leaf and dot plots, and the family of quantile plots

  • One discrete variable: bar graphs, pie charts, dot charts and radar plots

  • Two continuous variables: scatter, heat, hex, sunflower and polar smoother plots, lines of best fit, and line, area, range, dropline, rainbow and sparkline plots for data over time

  • Two discrete variables: jitter, table, balloon, stacked bar and mosaic plots

  • Three or more variables: contour plots, bubble plots, Chernoff faces and triplots

What you get

  • 80 videos, about eight and a half hours in total

  • New for 2026: every explainer has been redrawn with animated graphs built from real data, and the audio has been improved throughout

  • The slides for every explainer as a PDF

  • A do-file for every Stata lecture

  • A quiz at the end of each section, and a practice test to check yourself at the end

By the end of the course, you'll be able to look at a dataset, choose the graphs that show what matters, make them in Stata, and explain them to someone else.

Who this course is for:

  • Stata users who want more than the default histogram and scatter plot
  • Students and researchers in economics, the social sciences, public health, epidemiology and political science who need clear graphs for papers and theses
  • Analysts who have to show data to people who don't read regression tables
  • Anyone who wants a reference they can dip into: each graph type stands on its own