我导入了我的数据(my.data)并加载了ResearchMethods
包,一切正常,直到我运行图表。我收到以下警告信息......
我的数据有问题或我哪里出错?
BlandAltman(my.data$Calliper,my.data$Matlab,regionOn=F,main="GradeA",bandsOn=T,smooth=T)
<Tcl>
Warning messages:
1: In is.na(x) : is.na() applied to non-(list or vector) of type 'NULL'
2: In is.na(y) : is.na() applied to non-(list or vector) of type 'NULL'
Error in if (diff(limx) < diff(limy)) { : missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In qt(0.975, n - 1) : NaNs produced
2: In min(average) : no non-missing arguments to min; returning Inf
3: In max(average) : no non-missing arguments to max; returning -Inf
4: In max(abs(pretty(difference))) :no non-missing arguments to max; returning -Inf
Error in if (diff(limx) < diff(limy)) { :
missing value where TRUE/FALSE needed
数据集示例:
BlandAltman Calliper Algorithm
1 DK06sin 0.012126 0.002158531
2 DK068sin 0.001364 0.003075279
3 DK074dex 0.064926 0.006580390
4 DK08dex 0.009425 0.003882975