楼主: 统计R浪人
1487 6

[问答] R 绘图问题 [推广有奖]

  • 0关注
  • 3粉丝

博士生

0%

还不是VIP/贵宾

-

威望
0
论坛币
26 个
通用积分
28.6295
学术水平
18 点
热心指数
25 点
信用等级
10 点
经验
2097 点
帖子
132
精华
0
在线时间
221 小时
注册时间
2013-5-22
最后登录
2025-10-26

楼主
统计R浪人 发表于 2013-9-17 09:04:11 |AI写论文
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
关键词:图片

回帖推荐

Bayesian.var 发表于2楼  查看完整内容

Here comes my solutions. x
已有 1 人评分学术水平 收起 理由
耕耘使者 + 1 鼓励学术交流

总评分: 学术水平 + 1   查看全部评分

沙发
Bayesian.var 发表于 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)


已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
qoiqpwqr + 20 + 1 热心帮助其他会员
统计R浪人 + 1 + 1 + 1 观点有启发

总评分: 论坛币 + 20  学术水平 + 1  热心指数 + 2  信用等级 + 1   查看全部评分

I use to type English as my computer in office room doesn't support Chinese.

藤椅
qoiqpwqr 发表于 2013-9-17 18:24:51
ewma是啥函数?

板凳
统计R浪人 发表于 2013-9-17 21:17:49
qoiqpwqr 发表于 2013-9-17 18:24
ewma是啥函数?
是qcc包中做质量控制的一个函数

报纸
qoiqpwqr 发表于 2013-9-22 20:12:51
看一下plot.qcc的代码
已有 1 人评分经验 收起 理由
ltx5151 + 20 热心帮助其他会员

总评分: 经验 + 20   查看全部评分

地板
统计R浪人 发表于 2013-9-26 10:24:36
Bayesian.var 发表于 2013-9-26 02:13
Here comes my solutions.
太感谢了,楼主真牛,向楼主学习

7
Bayesian.var 发表于 2013-9-26 16:52:32
统计R浪人 发表于 2013-9-26 10:24
太感谢了,楼主真牛,向楼主学习
Thanks, we learn from each other.
I use to type English as my computer in office room doesn't support Chinese.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 05:38