全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1489 6
2013-09-17
悬赏 100 个论坛币 已解决
我是用下面代码作图:
x <- c(33.75, 33.05, 34, 33.81, 33.46, 34.02, 33.68, 33.27, 33.49, 33.20,       33.62, 33.00, 33.54, 33.12, 33.84)q <-  ewma(x, lambda=0.2, nsigmas=2.7)
问题在图片上
R作图问题.bmp

原图尺寸 1.08 MB

R作图问题.bmp

最佳答案

Bayesian.var 查看完整内容

Here comes my solutions. x
二维码

扫码加我 拉你入群

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

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

全部回复
2013-9-17 09:04:12
Here comes my solutions.


x <- c(33.75, 33.05, 34, 33.81, 33.46, 34.02, 33.68, 33.27, 33.49, 33.20, 33.62, 33.00, 33.54, 33.12, 33.84)


# clear space to start painting
dev.off()

# 1. solve the background color
qcc.options(bg.margin="white")

# 2. make plot with blank axis and set tick labels afterwards

par(xaxt="n")  #force plot to hide x-axis tick
q <-ewma(x, lambda=0.2, nsigmas=2.7,  add.stats=F)

par(xaxt="s")  # allow to have new x-axis tick
axis(1, at=c(1,5,15),label=c(1,5,15))  # create your own ticks

# 3. add legends anywhere you want, use expression() to type Greek letters
legend(10,33.8,expression("s = 5" ~lambda ~ " = 0.133" , "s = 6" ~lambda ~ " = 0.117" ),lty=1:2,col=1:2,lwd=1:2)


二维码

扫码加我 拉你入群

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

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

2013-9-17 18:24:51
ewma是啥函数?
二维码

扫码加我 拉你入群

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

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

2013-9-17 21:17:49
qoiqpwqr 发表于 2013-9-17 18:24
ewma是啥函数?
是qcc包中做质量控制的一个函数
二维码

扫码加我 拉你入群

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

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

2013-9-22 20:12:51
看一下plot.qcc的代码
二维码

扫码加我 拉你入群

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

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

2013-9-26 10:24:36
Bayesian.var 发表于 2013-9-26 02:13
Here comes my solutions.
太感谢了,楼主真牛,向楼主学习
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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