First, note that I asked this on StackOverflow, and it was recommended that I contact StataCorp technical support (https://stackoverflow.com/questions/...ea-or-somethin).
How can I exactly control the size of the dots in a scatterplot such that the size of each dot corresponds exactly to the area (as opposed to diameter) as defined by a third variable?
I know that I can use weights, as in this example, where I weight by weight (pun intended):
What exactly are these weights doing? I may not be looking in the right place, but it seems unclear how the weighting function scales the size (https://www.statalist.org/forums/for...scatter%20area) and (https://www.stata.com/statalist/arch.../msg01143.html).
If there isn't a solution, I could make my graph in R, though this would be inconvenient.
How can I exactly control the size of the dots in a scatterplot such that the size of each dot corresponds exactly to the area (as opposed to diameter) as defined by a third variable?
I know that I can use weights, as in this example, where I weight by weight (pun intended):
Code:
sysuse auto2, clear scatter price mpg[w=weight]
If there isn't a solution, I could make my graph in R, though this would be inconvenient.
Comment