我依序輸入以下指令:
來源:
| weight | sample |
| 103.7 101.3 101.9 102.2 101.9 101.8 103.1 102.2 101.6 103.8 100.3 103.3 103.3 100 102.3 102.1 101.6 101.9 100.8 102.9 100.3 103.4 99.8 99.7 100.6 101.4 100.2 99.4 101.9 100.9 | 75 75 75 75 75 75 75 75 75 75 76 76 76 76 76 76 76 76 76 76 77 77 77 77 77 77 77 77 77 77 |
指令:
library(qcc)
test<-read.csv(file.choose(),)
attach(test)
test<-qcc.groups(weight, sample)
qcc(test[1:3,], type="xbar")
https://drive.google.com/open?id=1vSFJSYg9G5TqXnTDYeNgAQVuyTO9uQHA
做出的XBAR圖正常
但當繼續輸入
library(SixSigma)
ss.study.ca(xST=test, xLT=NA, LSL=95, USL=105, Target=100, alpha=0.05, f.na.rm=TRUE, f.main="Process Capability Analysis", f.sub="")
PCA圖跑出的卻失敗還出現:
https://drive.google.com/open?id=1By9vtduLWDlsjsrDZvxHsx_CvpWSyA8D
Error: stat_qq requires the following missing aesthetics: sample
數值上確定是沒有問題,因為曾經做出來過。如下圖:
https://drive.google.com/open?id=10SC05IMeH4bQZuVKOhr_fJ88mIhKO2Q_
請問各位為什麼會這樣呢?
謝謝




























































































