全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2684 1
2014-07-24
帮助文件里是这么写的
DescriptionFor a general two parameter density, draws a contour graph where the contour lines are drawn at 10 percent, 1 percent, and .1 percent of the height at the mode.
Usagemycontour(logf,limits,data,...)Arguments
logffunction that defines the logarithm of the density
limitslimits (xlo, xhi, ylo, yhi) where the graph is to be drawn
datavector or list of parameters associated with the function logpost
...further arguments to pass to contour
ValueA contour graph of the density is drawn
Author(s)Jim Albert
Examplesm=array(c(0,0),c(2,1))v=array(c(1,.6,.6,1),c(2,2))normpar=list(m=m,v=v)mycontour(lbinorm,c(-4,4,-4,4),normpar) 我运行了下面例子    捕获.PNG 没办法理解呀
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-7 22:18:51
这个这个,我翻译一下下给你,就明白了~

这是一个画双变量密度函数的等高线图的函数,对于一般的两个参数的密度,绘制的等高线图,其中的轮廓线在10%,1%,和0.1%的高度在模式绘制。

基本用法是:mycontour(logf,limits,data,...),其中——

1. logf
函数定义的密度的对数
   
2. limits
其中要被绘制的图形的限制(XLO,XHI,YLO,YHI)

3. data

与功能相关联的参数的向量或列表logpost

4. ...
我们还可以有更多R语言认识并且接受的参数传递给轮廓

那个例子,是这么回事——

m=array(c(0,0),c(2,1))
v=array(c(1,.6,.6,1),c(2,2))#设定参数
normpar=list(m=m,v=v) #构造列表
mycontour(lbinorm,c(-4,4,-4,4),normpar)#扔函数里,lbinorm是二元正常密度的对数


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群