Stata users, I want to make a three-way scatter plot of FDI, Trade, and GDP. This is to visualize how the countries rank on these three variables.
-
Login or Register
- Log in with
sysuse census, clear tw scatter marriage divorce if marriage>75000 [aw= pop], ms(oh)|| /// scatter marriage divorce if marriage>75000, ms(none) mlab(state2) mlabpos(0) ||, /// note(Marker sizes represent population of state) leg(off)
webuse grunfeld, clear foreach v in invest mvalue kstock { gen ln`v' = ln(`v') su ln`v' if year == 1954, meanonly gen show`v' = (ln`v' - r(min)) / (r(max) - r(min)) _crcslbl show`v' `v' } graph dot (asis) show* if year==1954, over(company, sort(1) descending) /// marker(1, ms(Oh) msize(large)) marker(2, ms(+) msize(large)) marker(3, ms(Th) msize(large)) ysc(r(-0.05 1.05)) /// ytitle(first take logarithms; then rescale each variable to [0, 1]) subtitle(1954) legend(row(1) pos(12)) /// l1title(Company)
Comment