求助:在用R作限制立方样条时发生以下报错,这个报错是什么意思呀?有没有大神知道如何解决?Error in `geom_line()`:! Problem while computing layer data.ℹ Error occurred in the 1st layer.Caused by error in `x$terms %||% attr(x, "terms") %||% stop("no terms component nor attribute")`:! 没有项组件也没有属性代码如下:[size=13.3333px]fit<-ols(hr ~rcs(ew, 4)+bmi+age,data=data)summary(fit)an<-anova(fit)Predict(fit,ew)plot(Predict(fit,ew),anova=an, pval=T)ggplot()+geom_line(data=ols, aes(ew,yhat),linetype=1,size=1,alpha = 0.9,colour="red")+ geom_ribbon(data=ols, aes(ew,ymin = lower, ymax = upper),alpha = 0.3,fill="red")+ theme_classic()+ labs(title = "RCS", x="ew", y="hr")