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

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

[复制链接]
发表于 2012-9-30 09:14:16 | 显示全部楼层 |阅读模式
spBwplot(simPopulation)
spBwplot()所属R语言包:simPopulation

                                         Weighted box plots
                                         加权箱线图

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

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

Produce box-and-whisker plots of continuous or semi-continuous variables,  possibly broken down according to conditioning variables and taking into  account sample weights.
生产盒子和晶须图的连续或半连续的变量,根据条件变量和考虑考虑样本权重可能分解。


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


spBwplot(x, ...)

## Default S3 method:[默认方法]
spBwplot(x, weights = NULL, cond = NULL, dataS, dataP = NULL,
         horizontal = TRUE, coef = 1.5, zeros = TRUE,
         minRatio = NULL, do.out = FALSE, ...)



参数----------Arguments----------

参数:x
for the default method (currently the only method implemented), a  character vector specifying the columns of dataS and dataP to  be plotted.
默认的方法(目前唯一的方法实现),字符dataS和dataP要绘制的列向量确定。


参数:weights
a character string specifying the column of dataS that  contains the (personal) sample weights.
指定列的dataS,包含一个字符串(个人)样本权重。


参数:cond
an optional character vector specifying conditioning variables.
一个可选的字符向量指定条件变量。


参数:dataS
a data.frame containing household survey data.
data.frame包含家庭调查数据。


参数:dataP
optional; a data.frame containing simulated population  data or a list of such data.frames.
可选的data.frame包含模拟的人口数据或列表这样的data.frame的。


参数:horizontal
a logical indicating whether the boxes should be horizontal  or vertical.
逻辑的框是否应为水平或垂直。


参数:coef
a numeric value that determines the extension of the whiskers.
一个数字值,该值决定了扩展的晶须。


参数:zeros
a logical indicating whether the variables specified by x  are semi-continuous, i.e., contain a considerable amount of zeros.  If  TRUE, the box widths correspond to the proportion of non-zero data  points and the (weighted) box plot statistics are computed for these  non-zero data points only.
一个逻辑指示是否指定的变量由x是半连续的,即,包含了相当数量的零。如果TRUE,框宽度对应非零数据点的比例,这些非零数据点只计算(加权)的箱形图的统计资料。


参数:minRatio
a numeric value in (0,1]; if zeros is  TRUE, the boxes may become unreadable for a large proportion of  zeros.  In such a case, this can be used to specify a minimum ratio for the  box widths.  Variable box widths for semi-continuous variables can be  suppressed by setting this value to 1.
一个数值(0,1]; zeros如果是TRUE“的框可能会变得不可读的一个大比例的零。在这样的情况下,这可以被用来指定框宽度的最小比率。半连续变量的变量框的宽度,可以抑制将此值设置为1。


参数:do.out
a logical indicating whether data points that lie beyond the  extremes of the whiskers should be plotted.  Note that this is FALSE  by default.
的逻辑,表示应绘制的数据点是否位于超出晶须的极端。请注意,这是FALSE默认情况下。


参数:...
for the generic function, further arguments to be passed down to  methods.  For the default method, further arguments to be passed to  bwplot.
的通用功能,进一步论证流传下来的方法。对于默认的方法,进一步的参数被传递到bwplot。


Details

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

Missing values are ignored for producing box plots.
遗漏值将被忽略箱线图。


值----------Value----------

An object of class "trellis", as returned by  bwplot.
类的一个对象"trellis",返回bwplot。


注意----------Note----------

A formula interface may be added in the future.
的公式接口可以在将来添加。


(作者)----------Author(s)----------



Andreas Alfons




参见----------See Also----------

spBwplotStats, bwplot
spBwplotStats,bwplot


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


## Not run: [#不运行:]

## these take some time and are not run automatically[#这需要一定的时间,并没有自动运行]
## copy & paste to the R command line[#复制和粘贴到R命令行]

set.seed(1234)  # for reproducibility[可重复性]
data(eusilcS)   # load sample data[加载示例数据]
# multinomial model with random draws[多项式模型与随机抽取]
eusilcM <- simEUSILC(eusilcS, upper = 200000, equidist = FALSE)
# two-step regression[两步回归]
eusilcT <- simEUSILC(eusilcS, method = "twostep")
# plot results by gender[图按性别]
spBwplot("netIncome", "rb050", "rb090", dataS = eusilcS,
    dataP = list(M = eusilcM, T = eusilcT), layout = c(1, 2))

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 17:39 , Processed in 0.023370 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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