r - 在 R 的 Plantecophys 包中使用 fitacis 绘制多条曲线的问题
问题描述
我正在尝试使用“plantecophys”包在 R 中绘制多条 ACi 曲线。我需要根据植物接受的处理对曲线进行颜色编码。我之前使用不同的数据集完成了此操作,但它不适用于我当前的数据集,我不知道为什么。
我不断收到的错误是:
Error: To colour curves by id, fit with id argument (see ?fitacis)
。
这是由于fitacis()
在拟合曲线时未识别 id 的规范。我已将用于 id 的数据更改为调用 id 所需的因子。我尝试了很多解决方法,但都没有奏效,我想要一双额外的眼睛。
代码如下:
#Make Treatment.label a factor
t.datanew$Treatment.label <- as.factor(t.datanew$Treatment.label)
my.fits <- fitacis(t.datanew,group="Curve", method="bilinear",id ="Treatment.label")
#plot all fits on one graph
palette(rainbow(2))
plot(my.fits,how="oneplot",colour_by_id = TRUE,id_legend = TRUE)
处理水平是“定期浇水”和“过度浇水”。
解决方案
推荐阅读
- java - 出现错误:无法确定任务“:app:installDebug”的依赖关系。在设备或模拟器上运行 react-native 时
- wordpress - 简码中的自定义注册表单
- google-analytics - 谷歌标签管理器 - 触发器在用户点击时不起作用
- r - 如何在 ggplot2 中围绕虚线绘制轮廓或边框?
- javascript - 为 Storefront 主题添加一个 fas 类到现有的星级类 - 将空心星更改为填充星以进行产品评级
- heroku - 将 [theme] 代码添加到 setup.sh 文件以在 Heroku 上部署 Streamlit 应用程序
- javascript - 如何获取活动标签 ID 以便能够在 javascript 中使用它
- python - 如果第一列是文本或空白,则删除 csv 中的行,如果第一列是数字,则仅保留该行
- html - 如何在另一个 html 页面中链接并打开手风琴?
- reactjs - 如何使用提交按钮获取每个输入更改和不存在数据的现有缓存数据?