r - 用于 gls 的 Abline 不会绘图
问题描述
我试图用回归线绘制下面的模型,我可以生成一个图,但我尝试过的 abline 命令(也在下面)似乎都不起作用。R 似乎很高兴,并且不会使用我尝试的第一个 abline 命令输出任何错误消息,但绘图上不会出现任何线条。我也尝试将 abline 函数添加到绘图代码本身中,但这也没有奏效。任何帮助,将不胜感激。
model2<-gls(transformedlongevity~transformedproportion, data=independencedata,
correlation=corPagel(1,trimtree))
summary(model2)
plot(model2, xlab= "Transformed Value of Proportion of Life Spent Under Parental Care (Years)",
ylab="Transformed Value of Maximum Life Span (Years)",
main= "Time Spent Under Parental Care Relative
to Longevity of Passerine Species")
abline(gls(transformedproportion~transformedlongevity, independencedata), untf=T)
abline(a=0, b=coef(model2))
abline(coef(model2))
解决方案
推荐阅读
- java - 将压缩的 ascii 转换为 ascii 并返回
- angular - Angular 2 - __generator 未定义
- drools - 有没有办法在 drools 中调用 void 函数?
- android - 无法使用 Nearby.Messages [Android] 发布消息
- sql - SAS First.Variable 操作的 Oracle 等效项
- json - 我正在努力解决“对象作为 React 子项无效”错误
- php - 从 php 中的多个 HTML 对象获取数据值
- python - 当函数执行 Django 时如何重定向到同一页面
- python - EAFP和mypy可以共存吗?
- c++ - 以不区分大小写的方式制作 clang 格式的订单