spMosaic(simPopulation)
spMosaic()所属R语言包:simPopulation
Mosaic plots of expected and realized population sizes
预期,实现人口规模的马赛克图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create mosaic plots of expected (i.e., estimated) and realized (i.e., simulated) population sizes.
创建马赛克图的预期(即估计),实现(即模拟)的人口规模。
用法----------Usage----------
spMosaic(x, ...)
## Default S3 method:[默认方法]
spMosaic(x, weights = NULL, dataS, dataP, ...)
参数----------Arguments----------
参数:x
for the default method, an optional character vector specifying the columns of dataS and dataP to be cross tabulated and plotted. Otherwise, an object of class "spTable".
默认的方法,一个可选的字符向量dataS和dataP是交叉制表,绘制指定的列。否则,对象类"spTable"。
参数:weights
either a numeric vector containing the (personal) sample weights, or a character string specifying the corresponding column of dataS.
无论是数字向量(个人)样本权重,或者是一个字符串,指定相应列的dataS。
参数:dataS
a data.frame containing household survey data.
data.frame包含家庭调查数据。
参数:dataP
a data.frame containing simulated population data.
data.frame包含模拟的人口数据。
参数:...
further arguments to be passed to cotabplot.
进一步的参数被传递到cotabplot。
Details
详细信息----------Details----------
The two tables of expected and realized population sizes are combined into a single table, with an additional contitioning variable indicating expected and realized values. A conditional plot of this table is then produced using cotabplot.
这两个表的预期,实现了人口规模合并成一个单一的表,与预期,实现价值的的额外contitioning变量,表示。本表的条件图,然后产生使用cotabplot。
注意----------Note----------
A formula interface may be added in the future.
的公式接口可以在将来添加。
(作者)----------Author(s)----------
Andreas Alfons
参见----------See Also----------
spTable, cotabplot
spTable,cotabplot
实例----------Examples----------
set.seed(1234) # for reproducibility[可重复性]
data(eusilcS) # load sample data[加载示例数据]
eusilcP <- simStructure(eusilcS)
abb <- c("B","LA","Vi","C","St","UA","Sa","T","Vo")
spMosaic(c("rb090", "db040", "hsize"), "rb050", eusilcS, eusilcP,
labeling=labeling_border(abbreviate=c(db040=TRUE)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|