distplot(vcd)
distplot()所属R语言包:vcd
Diagnostic Distribution Plots
诊断分布图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Diagnostic distribution plots: poissonness, binomialness and negative binomialness plots.
诊断分布图:poissonness,binomialness和负binomialness图。
用法----------Usage----------
distplot(x, type = c("poisson", "binomial", "nbinomial"),
size = NULL, lambda = NULL, legend = TRUE, xlim = NULL, ylim = NULL,
conf_int = TRUE, conf_level = 0.95, main = NULL,
xlab = "Number of occurrences", ylab = "Distribution metameter",
gp = gpar(cex = 0.5), name = "distplot", newpage = TRUE, pop = TRUE, ...)
参数----------Arguments----------
参数:x
either a vector of counts, a 1-way table of frequencies of counts or a data frame or matrix with frequencies in the first column and the corresponding counts in the second column.
无论是矢量的计数的计数或一个数据框或矩阵中的第一列和第二列中的相应的计数频率的频率,1路表。
参数:type
a character string indicating the distribution.
一个字符串表示的分布。
参数:size
the size argument for the binomial and negative binomial distribution. If set to NULL and type is "binomial", then size is taken to be the maximum count. If set to NULL and type is "nbinomial", then size is estimated from the data.
二项分布和负二项分布参数的大小。如果设置为NULL和type是"binomial",然后size是最大计数。如果设置为NULL和type"nbinomial",那么size估计的数据。
参数:lambda
parameter of the poisson distribution. If type is "poisson" and lambda is specified a leveled poissonness plot is produced.
泊松分布的参数。如果类型是"poisson"和lambda指定平整的poissonness图。
参数:legend
logical. Should a legend be plotted?
逻辑。应该绘制一个传奇吗?
参数:xlim
limits for the x axis.
x轴的限制。
参数:ylim
limits for the y axis.
y轴的限制。
参数:conf_int
logical. Should confidence intervals be plotted?
逻辑。如果绘制置信区间?
参数:conf_level
confidence level for confidence intervals.
置信区间的置信水平。
参数:main
a title for the plot.
一个标题为图。
参数:xlab
a label for the x axis.
为x轴的标签。
参数:ylab
a label for the y axis.
为y轴的标签。
参数:gp
a "gpar" object controlling the grid graphical parameters of the points.
"gpar"对象控制网格图形参数之分。
参数:name
name of the plotting viewport.
绘制视口的名称。
参数:newpage
logical. Should grid.newpage be called before plotting?
逻辑。 grid.newpage被称为打印之前?
参数:pop
logical. Should the viewport created be popped?
逻辑。如果视口创建弹出?
参数:...
further arguments passed to grid.points.
进一步的参数传递给grid.points。
Details
详细信息----------Details----------
distplot plots the number of occurrences (counts) against the distribution metameter of the specified distribution. If the distribution fits the data, the plot should show a straight line. See Friendly (2000) for details.
distplot绘制针对指定的分布的分布metameter出现的数目(计数)。如果分配适合的数据,图应显示一条直线。的详细信息,请参见活动(2000年)。
(作者)----------Author(s)----------
Achim Zeileis <a href="mailto:Achim.Zeileis@R-project.org">Achim.Zeileis@R-project.org</a>
参考文献----------References----------
A poissonness plot, The American Statistican, 34, 146–149.
Checking the shape of discrete distributions. In D. C. Hoaglin, F. Mosteller, J. W. Tukey (eds.), Exploring Data Tables, Trends and Shapes, chapter 9. John Wiley \& Sons, New York.
Visualizing Categorical Data. SAS Institute, Cary, NC.
实例----------Examples----------
## Simulated data examples:[#模拟数据的例子:]
dummy <- rnbinom(1000, size = 1.5, prob = 0.8)
distplot(dummy, type = "nbinomial")
## Real data examples:[#实时数据的例子:]
data("HorseKicks")
data("Federalist")
data("Saxony")
distplot(HorseKicks, type = "poisson")
distplot(HorseKicks, type = "poisson", lambda = 0.61)
distplot(Federalist, type = "poisson")
distplot(Federalist, type = "nbinomial", size = 1)
distplot(Federalist, type = "nbinomial")
distplot(Saxony, type = "binomial", size = 12)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|