p.dnorm(sfsmisc)
p.dnorm()所属R语言包:sfsmisc
Plot Parametric Density Functions
图参数密度函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These are utilities for pretty plotting of often used parametric densities.
这些漂亮的绘图经常使用的参数密度的实用程序。
用法----------Usage----------
p.dnorm (mu = 0, s = 1, h0.col = "light gray",
ms.lines = TRUE, ms.col = "gray", ...)
p.dchisq(nu, h0.col = "light gray", ...)
p.dgamma(shape, h0.col = "light gray", ...)
参数----------Arguments----------
参数:mu,s
numbers, the mean and standard deviation of the normal distribution.
号码,平均值和标准偏差的正态分布。
参数:nu
positive number, the degrees of freedom df argument for the chi^2-density function dchisq.
正数,人的自由度dfchi^2密度函数dchisq参数。
参数:shape
number, the shape parameter for the Gamma distribution.
号,shape的Gamma分布的参数。
参数:h0.col
color specification for the line y = 0.
y = 0的色彩规范。
参数:ms.lines
logical, used for the normal only: should lines be drawn at the mean and +- 1 standard deviation.
逻辑,用于一般只在平均线画和+- 1个标准偏差。
参数:ms.col
color for the ms lines if ms.lines is TRUE.
颜色的ms的行ms.lines,是TRUE。
参数:...
further parameter passed to curve(), e.g., add = TRUE for adding to current plot.
更多的参数传递给curve(),例如,add = TRUE添加当前的图。
(作者)----------Author(s)----------
Werner Stahel et al.
参见----------See Also----------
the underlying density functions,
的基础密度函数,
实例----------Examples----------
p.dnorm()
p.dnorm(mu=1.5, add = TRUE, ms.lines = FALSE) # add to the plot above[上面的图]
p.dchisq(2, main= "Chi^2 Densities -- nu = 2,3,4")
p.dchisq(3, add = TRUE, col = "red")
p.dchisq(4, add = TRUE, col = "blue")
op <- par(mfrow = c(2,2), mgp = c(1.6, 0.6,0), mar = c(3,3,1,1))
for(sh in 1:4)
p.dgamma(sh)
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|