- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 14446 个
- 通用积分
- 1962.3850
- 学术水平
- 1119 点
- 热心指数
- 1167 点
- 信用等级
- 1061 点
- 经验
- 8523 点
- 帖子
- 1629
- 精华
- 1
- 在线时间
- 2492 小时
- 注册时间
- 2010-10-10
- 最后登录
- 2025-12-19
|
- //Adding titles to the left hand side of the graph
- sysuse auto, clear
- fillin rep78 foreign
- twoway scatter price mpg, by(foreign rep78, cols(5) compact)
- egen group = group(foreign rep78)
- label define group 1 "Poor" ///
- 2 "Fair" ///
- 3 "Average" ///
- 4 "Good" ///
- 5 "Excellent" ///
- 6" " ///
- 7" " ///
- 8" " ///
- 9" " ///
- 10 " "
-
-
- label value group group ///
-
-
- twoway scatter price mpg, ///
- by(group, cols(5) ///
- r1title("Car type", ///
- orientation(rvertical) ///
- size(medsmall)) ///
- t1title("Repair status", ///
- size(medsmall)) ///
- note("") compact)
-
- gr_edit plotregion1.r1title[5].style.editstyle drawbox(yes) editcopy
- gr_edit plotregion1.r1title[5].as_textbox.setstyle, style(yes)
- gr_edit plotregion1.r1title[10].as_textbox.setstyle, style(yes)
- gr_edit plotregion1.r1title[5].text = {}
- gr_edit plotregion1.r1title[5].text.Arrpush Domestic
- gr_edit plotregion1.r1title[10].text = {}
- gr_edit plotregion1.r1title[10].text.Arrpush Foreign
- gr_edit plotregion1.r1title[5]._set_orientation rvertical
-
复制代码
|
|