全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
19550 2
2015-04-21
t <- seq(from=-3,to=3,by=0.01)
plot(t,dnorm(t),ylab="PDF")
plot(t,pnorm(t),ylab="PDF")
这个是画简单的PDF和CDF图,现在又如下要求:
plotthe probability density function and cumulative distribution function(Prob(T)<t) for the t-distribution with infinity, 10 and 1 degree offreedom.Make the y-limit of the first and second figure rangefrom 0 to 0.5 and 0 to 1 respectively. Make sure the main title is in a fonttwice the default size, the y-axes are labeled as shown, and the line types 1,2and 3 correspond to the t-distribution with Inf, 10 and 1 degree of freedomrespectively.
标题和两个坐标轴有一些要求,这个较好实现,但是在一张图上实现3个不同的自由度的绘图,然后要怎么实现呢,效果图如下所示: QQ截图20150421224913.jpg
前辈们,在具体的函数中要用到哪些参数,能指教一下吗,谢谢
附件列表
QQ截图20150421224913.jpg

原图尺寸 32.23 KB

QQ截图20150421224913.jpg

二维码

扫码加我 拉你入群

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

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

全部回复
2015-4-22 00:44:49
The basic idea is to use "lines" function to add pdf lines one by one, take "pdf" assignment for example:
复制代码
二维码

扫码加我 拉你入群

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

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

2015-4-23 08:30:09
hugebear 发表于 2015-4-22 00:44
The basic idea is to use "lines" function to add pdf lines one by one, take "pdf" assignment for exa ...
谢谢哥们,昨天在网上查找的过程中,已经大概掌握了思路,就是卡在了自由度这里
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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