
Contour plots were introduced in Stata 12.
ORDER STATA |
The new command is twoway contour.
Or pull down the Graphics menu.
Either way, you can draw
or this
Let us show you how this works.
Imagine you start with these data:
That’s almost an ordinary two-way scatter of 126 observations, except that it is of three variables, and the third variable is encoded by color.
Anyway, start with those data, specify that you want Shepard interpolation, and you get this:
Or, specify that you want the default thin-plate spline, and you get this:
See New in Stata 17 to learn about what was added in Stata 17.