我正在尝试在ggplot2的facet dotplot中更改绘图顺序,但我无法使其正常工作。这是我的融合数据集:
> London.melt
country medal.type count
1 South Korea gold 13
2 Italy gold 8
3 France gold 11
4 Australia gold 7
5 Japan gold 7
6 Germany gold 11
7 Great Britain & N. Ireland gold 29
8 Russian Federation gold 24
9 China gold 38
10 United States gold 46
11 South Korea silver 8
12 Italy silver 9
13 France silver 11
14 Australia silver 16
15 Japan silver 14
16 Germany silver 19
17 Great Britain & N. Ireland silver 17
18 Russian Federation silver 26
19 China silver 27
20 United States silver 29
21 South Korea bronze 7
22 Italy bronze 11
23 France bronze 12
24 Australia bronze 12
25 Japan bronze 17
26 Germany bronze 14
27 Great Britain & N. Ireland bronze 19
28 Russian Federation bronze 32
29 China bronze 23
30 United States bronze 29
这是我的绘图命令:
qplot(x = count, y = country, data = London.melt, geom = "point", facets = medal.type ~.)
我得到的结果如下所示:
如果您有任何建议,我将非常感激。
dput(London.melt)
显示您的数据集,以便轻松导入。 - ROLO