我目前正在尝试获得与本页上发现的数据表类似的比例数据图表(http://www.improving-visualisation.org/vis/id=148)。如何制作比例面积图?
我工作的数据摘自1993年至2003年期间按性别和课程类型分层的大学毕业生数量的CSV。我已将csv分为“df_list” - 1993年可以在这里看到。
df_list [1] $ 1993
year sex type_of_course no_of_graduates
1 1993 Males Education na
2 1993 Males Applied Arts na
3 1993 Males Humanities & Social Sciences 481
4 1993 Males Mass Communication na
5 1993 Males Accountancy 295
6 1993 Males Business & Administration 282
7 1993 Males Law 92
8 1993 Males Natural, Physical & Mathematical Sciences 404
9 1993 Males Medicine 95
10 1993 Males Dentistry 14
11 1993 Males Health Sciences 10
12 1993 Males Information Technology 264
13 1993 Males Architecture & Building 132
14 1993 Males Engineering Sciences 1496
15 1993 Males Services na
16 1993 Females Education na
17 1993 Females Applied Arts na
18 1993 Females Humanities & Social Sciences 1173
19 1993 Females Mass Communication na
20 1993 Females Accountancy 396
21 1993 Females Business & Administration 708
22 1993 Females Law 93
23 1993 Females Natural, Physical & Mathematical Sciences 588
24 1993 Females Medicine 61
25 1993 Females Dentistry 11
26 1993 Females Health Sciences 40
27 1993 Females Information Technology 215
28 1993 Females Architecture & Building 144
29 1993 Females Engineering Sciences 254
30 1993 Females Services na
我了解,下一步将作出个人的比例柱状图每年可为相对于每个课程 - 我究竟如何着手呢?我目前正试图将男性和女性合并为一行。
此处介绍的数据目前在R会话中不可用,使得这个问题几乎无法回答。请编辑该问题。 – boshek
你的问题到底是什么?如何制作图表?如何以您想要的格式获取数据? – Heroka
你能告诉我们dput(df_list)的结果吗? – ytk