Ord_plot(vcd)
Ord_plot()所属R语言包:vcd
Ord Plots
条例图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Ord plots for diagnosing discrete distributions.
条例诊断离散分布图。
用法----------Usage----------
Ord_plot(obj, legend = TRUE, estimate = TRUE, tol = 0.1, type = NULL,
xlim = NULL, ylim = NULL, xlab = "Number of occurrences",
ylab = "Frequency ratio", main = "Ord plot", gp = gpar(cex = 0.5),
name = "Ord_plot", newpage = TRUE, pop = TRUE, ...)
Ord_estimate(x, type = NULL, tol = 0.1)
参数----------Arguments----------
参数:obj
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路表。
参数:legend
logical. Should a legend be plotted?.
逻辑。如果一个传说绘制。
参数:estimate
logical. Should the distribution and its parameters be estimated from the data? See details.
逻辑。从数据的分布及其参数估计?查看详细信息。
参数:tol
tolerance for estimating the distribution. See details.
容忍的分布估计。查看详细信息。
参数:type
a character string indicating the distribution, must be one of "poisson", "binomial", "nbinomial" or "log-series" or NULL. In the latter case the distribution is estimated from the data. See details.
一个字符串,表示分配,必须有一个"poisson","binomial","nbinomial"或"log-series"或NULL。在后者的情况下的分布估计的数据。查看详细信息。
参数:xlim
limits for the x axis.
x轴的限制。
参数:ylim
limits for the y axis.
y轴的限制。
参数:xlab
a label for the x axis.
为x轴的标签。
参数:ylab
a label for the y axis.
为y轴的标签。
参数:main
a title for the plot.
一个标题为图。
参数: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。
参数:x
a vector giving intercept and slope for the (fitted) line in the Ord plot.
一个向量(已安装)条例图线的截距和斜率。
Details
详细信息----------Details----------
The Ord plot plots the number of occurrences against a certain frequency ratio (see Friendly (2000) for details) and should give a straight line if the data comes from a poisson, binomial, negative binomial or log-series distribution. The intercept and slope of this straight line conveys information about the underlying distribution.
本条例图图出现针对某一频率比(见活动(2000))和应得到一条直线,如果数据来自一个泊松分布,二项分布,负二项分布或log序列分布的。这条直线的截距和斜率的传达信息的基本分布。
Ord_plot fits a usual OLS line (black) and a weighted OLS line (red). From the coefficients of the latter the distribution is estimated by Ord_estimate as described in Table 2.10 in Friendly (2000). To judge whether a coefficient is positive or negative a tolerance given by tol is used. If none of the distributions fits well, no parameters are estimated. Be careful with the conclusions from Ord_estimate as it implements just some simple heuristics!
Ord_plot符合通常的OLS线(黑色)和加权的OLS线(红色)。从后者的分配系数估计Ord_estimate表2.10中所描述的活动(2000年)。要判断的系数是否是正或负的公差tol用于由给出。如果没有的分布非常适合的,不带任何参数估计。要小心的结论Ord_estimate,因为它的实现只是一些简单的启发式!
值----------Value----------
A vector giving the intercept and slope of the weighted OLS line.
一个向量的加权OLS线的截距和斜率。
(作者)----------Author(s)----------
Achim Zeileis <a href="mailto:Achim.Zeileis@R-project.org">Achim.Zeileis@R-project.org</a>
参考文献----------References----------
Graphical methods for a class of discrete distributions, Journal of the Royal Statistical Society, A 130, 232–238.
Visualizing Categorical Data. SAS Institute, Cary, NC.
实例----------Examples----------
## Simulated data examples:[#模拟数据的例子:]
dummy <- rnbinom(1000, size = 1.5, prob = 0.8)
Ord_plot(dummy)
## Real data examples:[#实时数据的例子:]
data("HorseKicks")
data("Federalist")
data("Butterfly")
data("WomenQueue")
grid.newpage()
pushViewport(viewport(layout = grid.layout(2, 2)))
pushViewport(viewport(layout.pos.col=1, layout.pos.row=1))
Ord_plot(HorseKicks, main = "Death by horse kicks", newpage = FALSE)
popViewport()
pushViewport(viewport(layout.pos.col=1, layout.pos.row=2))
Ord_plot(Federalist, main = "Instances of 'may' in Federalist papers", newpage = FALSE)
popViewport()
pushViewport(viewport(layout.pos.col=2, layout.pos.row=1))
Ord_plot(Butterfly, main = "Butterfly species collected in Malaya", newpage = FALSE)
popViewport()
pushViewport(viewport(layout.pos.col=2, layout.pos.row=2))
Ord_plot(WomenQueue, main = "Women in queues of length 10", newpage = FALSE)
popViewport(2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|