附加 ysize(5) xsize(5) 选项,尝试更改里面的数值,以便调整纵横比。
基本的思路是纵向拉伸。
同时,为了避免文字重叠,可能还需要指定文字标签的位置。Stata 初级视频,A3_graph 有详细介绍。下面是该讲中的一个例子。
*_______________
*-3.2.7 图标类
help markerlabelstyle
help marker_options
help marker_label_options
*-3.2.7.1 简介
*-命令结构: twoway (单元图) , mlabel(文字变量) 其他选项
*-3.2.7.2 图标的位置
*-整体设定
scatter lexp gnppc if region==2, ///
mlabel(country2) mlabposition(9)
scatter lexp gnppc if region==2, ///
mlabel(country2) mlabp(3)
help clockposstyle
* 11 12 1
* 10 2
* 9 0 3
* 8 4
* 7 6 5
*-个别设定
sysuse lifeexp, clear
gen pos = 3
replace pos = 4 if country2=="美国"
replace pos = 1 if country2=="宏都拉斯"
scatter lexp gnppc if region==2, ///
mlabel(country2) mlabvp(pos)
scatter lexp gnppc if region==2, ///
mlabel(country2) mlabvp(pos) ///
xscale(range(-2000 33000))