This graph demonstrates the use of two forms of graphing in order to compare and contrast variables . In this scenario the auto data set supplied by Stata is used. The x-axis depicts the mileage, and the y-axis shows the weight or the density of the vehicle. This type of graph is effective for comparing multiple variables within one graph clearly.
The following code can be used in Stata16 to create the graph pictured above: