From the course: Introduction to Stata 15

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Contour plots

Contour plots - Stata Tutorial

From the course: Introduction to Stata 15

Start my 1-month free trial

Contour plots

- [Instructor] Contour plots are often seen in maps where mountains or other terrain characteristics are displayed on a two-dimensional map as contours. This gives the illusion of adding depth to maps, and contour plots are simply a way to visualize three-dimensional data in two dimensions. They're often used in mapping techniques, but can also be used for other statistical purposes, for example, to explore by varied distributions, or to examine the relationship between three continuous variables. Contour plots don't tend to work well for categorical variables. In this session we'll explore how to build and modify contour plots in Stata. The command caller contour plot is called contour, however, somewhat strangely, in needs to be called through the twoway command. The basics of the command are relatively easy to understand. You need to specify a Y variable and an X variable, which together make up your two-dimensional map, and then a Z variable, which will define your contours. Let's…

Contents