找回密码
 注册
查看: 265|回复: 0

R语言 vcd包 Bundestag2005()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 14:46:19 | 显示全部楼层 |阅读模式
Bundestag2005(vcd)
Bundestag2005()所属R语言包:vcd

                                        Votes in German Bundestag Election 2005
                                         在2005年德国联邦议院选举投票

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Number of votes by province in the German Bundestag election 2005 (for the parties that eventually entered the parliament).
2005年在德国联邦议院选举投票数按省份各方,最终进入了议会。


用法----------Usage----------


data("Bundestag2005")



格式----------Format----------

A 2-way "table" giving the number of votes for each party (Fraktion) in each of the 16 German provinces (Bundesland):
2路"table"给各党的选票(Fraktion)在德国的16个省(Bundesland):

Name
名称

Bundesland
Bundesland

Fraktion
Fraktion


Details

详细信息----------Details----------

In the election for the German parliament “Bundestag”,  five parties obtained enough votes to enter the parliament: the social democrats SPD, the conservative CDU/CSU, the liberal FDP, the green party “Die Gruenen” and the leftist party  “Die Linke”. The table Bundestag2005 gives the number of votes for each party (Fraktion) in each of the 16 German provinces (Bundesland). The provinces are ordered from North to South.
在选举的德国议会联邦议院“,五方获得足够的选票,进入议会的社会民主党人SPD,保守的基民盟/基社盟,自由FDP,绿党”Gruenen“和左派党”左翼党“。下表Bundestag2005的票数为每个党(Fraktion)在德国的16个省(Bundesland)。从北到南的省份是有序的。

The data have been obtained from the German statistical office (Statistisches Bundesamt) from the Web page given below.
已获得来自德国统计局(Statistisches Bundesamt)从Web页面下面给出的数据。

Note that the number of seats in the parliament cannot be computed from the number of votes alone. The examples below show the distribution of seats that resulted from the election.
需要注意的是,不能计算在议会中的席位数从单独的票数。下面的例子显示,从选的议席分配。


源----------Source----------

Der Bundeswahlleiter, Statistisches Bundesamt.   http://www.bundeswahlleiter.de/bundestagswahl2005/
德Bundeswahlleiter,Statistisches Bundesamt。 http://www.bundeswahlleiter.de/bundestagswahl2005/


实例----------Examples----------


## The outcome of the election in terms of seats in the[#席位的选举结果]
## parliament was:[#议会是:]
seats <- structure(c(226, 61, 54, 51, 222),
  .Names = c("CDU/CSU", "FDP",  "Linke", "Gruene", "SPD"))

## Hues are chosen as metaphors for the political parties[#隐喻色彩选择的政党]
## CDU/CSU: blue, FDP: yellow, Linke: purple, Gruene: green, SPD: red[#CDU / CSU:FDP:蓝色,黄色,紫色,临客:Gruene:绿色,SPD:红色]
## using the respective hues from a color wheel with[#使用各自的色调从色轮]
## chroma = 60 and luminance = 75[#色度= 60和亮度= 75]
parties <- rainbow_hcl(6, c = 60, l = 75)[c(5, 2, 6, 3, 1)]
names(parties) <- names(seats)
parties

## The pie chart shows that neither the SPD+Gruene coalition nor[#饼图显示,无论是SPD +的Gruene联盟也]
## the opposition of CDU/CSU+FDP could assemble a majority.[#CDU / CSU + FDP的反对,可能聚集了多数。]
## No party would enter a coalition with the leftists, leading to a[#任何一方将进入一个与左派联盟,从而导致]
## big coalition.[#大联盟。]
pie(seats, clockwise = TRUE, col = parties)

## The regional distribution of the votes, stratified by province,[#区域分布的选票,按省进行分层,]
## is shown in a mosaic display: first for the 10 Western then the[#在拼接显示:第一的西部10个]
## 6 Eastern provinces.[#6东部省份。]
data("Bundestag2005")
votes <- Bundestag2005[c(1, 3:5, 9, 11, 13:16, 2, 6:8, 10, 12),
                       c("CDU/CSU", "FDP", "SPD", "Gruene", "Linke")]
mosaic(votes, gp = gpar(fill = parties[colnames(votes)]),
  spacing = spacing_highlighting, labeling = labeling_left,
  labeling_args = list(rot_labels = c(0, 90, 0, 0), pos_labels = "center",
  just_labels = c("center","center","center","right"), varnames = FALSE),
  margins = unit(c(2.5, 1, 1, 12), "lines"),
  keep_aspect_ratio = FALSE)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-27 10:25 , Processed in 0.021826 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表