楼主: iceyseethesea
1067 1

[作图问题求助] STATA作图:请各位给提提建议 [推广有奖]

  • 0关注
  • 0粉丝

VIP1

大专生

3%

还不是VIP/贵宾

-

威望
0
论坛币
1480 个
通用积分
0.1200
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
181 点
帖子
17
精华
0
在线时间
40 小时
注册时间
2016-4-1
最后登录
2019-2-3

楼主
iceyseethesea 学生认证  发表于 2018-12-4 11:16:52 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
新手第一次作图,感觉非常垃圾……codes格外多,图也很不简洁美观。这个图的x轴是时间,y轴是死亡率,每个点是一个国家,然后我想看各个地区死亡率随年份的改变。

Codes在这里,求狠拍:
  twoway (scatter infant_mortality cohort if geo=="Europe and Central Asia",msize(small)) ///
  (scatter infant_mortality cohort if geo=="East, South and South-East Asia",msize(small)) ///
  (scatter infant_mortality cohort if geo=="Sub-Saharan Africa",msize(small))///
  (scatter infant_mortality cohort if geo=="Latin America and the Caribbean",msize(small)) ///
  (scatter infant_mortality cohort if geo=="Middle East and North Africa",msize(small))///
  (lfit infant_mortality cohort if geo=="Europe and Central Asia") ///
  (lfit infant_mortality cohort if geo=="East, South and South-East Asia") ///
  (lfit infant_mortality cohort if geo=="Sub-Saharan Africa")///
  (lfit infant_mortality cohort if geo=="Latin America and the Caribbean") ///
  (lfit infant_mortality cohort if geo=="Middle East and North Africa"),///
  title("Infant Mortality by geographical regions") ///
   xtitle("Year") ///
   ytitle("Infant Mortality") ylabel(, angle(0)) ///   
  legend(label(1 "Europe and Central Asia") ///
  label(2 "East, South and South-East Asia") ///
  label(3 "Sub-Saharan Africa") ///
  label(4 "Latin America and the Caribbean") ///
  label(5 "Middle East and North Africa")///
  label(6 "Fitted Value,Europe and Central Asia")///
  label(7 "Fitted Value,East, South and South-East Asia")///
  label(8 "Fitted Value,Sub-Saharan Africa")///
  label(9 "Fitted Value,Latin America and the Caribbean") ///
  label(10 "Fitted Value,Middle East and North Africa")///
  size(small))///
  graphregion(fcolor(white))
Graph.jpg


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:死亡率 第一次 简洁美

Graph.jpg (473.21 KB)

Graph.jpg

cohorts_3.dta
下载链接: https://bbs.pinggu.org/a-2658903.html

584.75 KB

沙发
iceyseethesea 学生认证  发表于 2018-12-4 11:23:44
丑的自己都看不下去了……

作图的目的是对比世界不同地区 死亡率随时间的变化。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-30 02:41